rkfb:set fix.line_lenght in rk_fb_register
authoryxj <yxj@rock-chips.com>
Wed, 29 Aug 2012 06:29:21 +0000 (14:29 +0800)
committeryxj <yxj@rock-chips.com>
Wed, 29 Aug 2012 07:45:27 +0000 (15:45 +0800)
drivers/video/rockchip/rk_fb.c

index e3f6f17dbcc7906291ea8d7ab3e0cdf48b88c482..e11b731aa26fb8133431c07e90ecd25c467275da 100644 (file)
@@ -1035,6 +1035,7 @@ int rk_fb_register(struct rk_lcdc_device_driver *dev_drv,
        #else
                fbi->var.bits_per_pixel = 16; 
        #endif
+       fbi->fix.line_length  = (fbi->var.xres)*(fbi->var.bits_per_pixel>>3);
         fbi->var.xres_virtual = fbi->var.xres;
         fbi->var.yres_virtual = fbi->var.yres;
         fbi->var.width =  fb_inf->lcdc_dev_drv[lcdc_id]->cur_screen->width;