mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 12:17:12 +09:00
rkfb:set fix.line_lenght in rk_fb_register
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user