rk fb: modify the judgement of vertical screen for hdmi
authorzwl <zwl@rock-chips.com>
Tue, 24 Jun 2014 02:58:17 +0000 (10:58 +0800)
committerzwl <zwl@rock-chips.com>
Tue, 24 Jun 2014 02:59:58 +0000 (10:59 +0800)
drivers/video/rockchip/rk_fb.c

index 3d539ca9ef5f1846d2ecfc985ef27cb41dc86649..3c1b6c917ca9d899b977e172ecf3ec5bfd20f53c 100755 (executable)
@@ -1524,7 +1524,7 @@ static void rk_fb_update_reg(struct rk_lcdc_driver *dev_drv,
                        ext_win->state = 0;
                }
 
-               if (ext_win->area[0].xact < ext_win->area[0].yact) {
+               if (win->area[0].xact < win->area[0].yact) {
                        int pixel_width, vir_width_bit, stride;
                        ext_win->area[0].xact = win->area[0].yact;
                        ext_win->area[0].yact = win->area[0].xact;