From: yzq Date: Mon, 22 Aug 2011 07:29:10 +0000 (+0800) Subject: rk29-fb: fix a bug of video rotation X-Git-Tag: firefly_0821_release~9772^2~1 X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=60e559cf62204e1d54b3e8528692d65b2ddc4a5e;p=firefly-linux-kernel-4.4.55.git rk29-fb: fix a bug of video rotation --- diff --git a/drivers/video/rk29_fb.c b/drivers/video/rk29_fb.c index 9bb8a6164f55..a254ade2f966 100755 --- a/drivers/video/rk29_fb.c +++ b/drivers/video/rk29_fb.c @@ -1981,8 +1981,8 @@ static int fb1_set_par(struct fb_info *info) 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;