From 5c0042a06bd6bbc4392fd28d787173f9d22bcbb1 Mon Sep 17 00:00:00 2001 From: ddl <ddl@rockchip.com> Date: Fri, 29 Jul 2011 18:08:09 +0800 Subject: [PATCH] fb: fix fb rotate bug --- drivers/video/rk29_fb.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) mode change 100644 => 100755 drivers/video/rk29_fb.c diff --git a/drivers/video/rk29_fb.c b/drivers/video/rk29_fb.c old mode 100644 new mode 100755 index 3e1a90cc0525..3c20aa3d2987 --- a/drivers/video/rk29_fb.c +++ b/drivers/video/rk29_fb.c @@ -1019,7 +1019,7 @@ static int win0_set_par(struct fb_info *info) CHK_SUSPEND(inf); - if(((var->rotate == 270)||(var->rotate == 90)) && (inf->video_mode)) + if(((var->rotate == 270)||(var->rotate == 90) || (var->rotate == 180)) && (inf->video_mode)) { #ifdef CONFIG_FB_ROTATE_VIDEO // if(xact > screen->x_res) @@ -2154,8 +2154,8 @@ static int fb1_ioctl(struct fb_info *info, unsigned int cmd, unsigned long arg) ipp_req.dst0.CbrMst = inf->fb0->fix.mmio_start + screen->x_res*screen->y_res*(2*dstoffset+1); // if(var->xres > screen->x_res) // { - ipp_req.dst0.w = var->xres; - ipp_req.dst0.h = var->yres; + ipp_req.dst0.w = screen->x_res; + ipp_req.dst0.h = screen->y_res; // } else { // ipp_req.dst0.w = var->yres; // ipp_req.dst0.h = var->xres; -- 2.34.1