rk3188 lcdc:fix ACT_WIDTH/HEIGHT err
authoryxj <yxj@rock-chips.com>
Thu, 24 Jan 2013 07:47:31 +0000 (15:47 +0800)
committeryxj <yxj@rock-chips.com>
Thu, 24 Jan 2013 07:47:53 +0000 (15:47 +0800)
drivers/video/rockchip/lcdc/rk3188_lcdc.h

index ac19a36238953b6f1d1954131e7f8248282bfc18..29d0dc3f81791e056e35046420a299551ee022ff 100644 (file)
 #define WIN0_ACT_INFO          (0x34)
 #define m_ACT_WIDTH            (0x1fff<<0)
 #define m_ACT_HEIGHT           (0x1fff<<16)
-#define v_ACT_WIDTH(x)         (((x)&0x1fff)<<0)
-#define v_ACT_HEIGHT(x)        (((x)&0x1fff)<<16)
+#define v_ACT_WIDTH(x)         (((x-1)&0x1fff)<<0)
+#define v_ACT_HEIGHT(x)        (((x-1)&0x1fff)<<16)
 
 #define WIN0_DSP_INFO          (0x38)
 #define v_DSP_WIDTH(x)         (((x-1)&0x7ff)<<0)