mirror of
https://github.com/torvalds/linux.git
synced 2026-06-10 07:32:29 +02:00
16bit and 32bit change problem
This commit is contained in:
parent
5c81d131c6
commit
bf5b56e919
|
|
@ -1342,7 +1342,9 @@ static int fb0_set_par(struct fb_info *info)
|
|||
{
|
||||
case 16: // rgb565
|
||||
par->format = 1;
|
||||
fix->line_length = 2 * xres_virtual;
|
||||
//fix->line_length = 2 * xres_virtual;
|
||||
fix->line_length = (inf->fb0_color_deepth ? 4:2) * xres_virtual; //32bit and 16bit change
|
||||
|
||||
#ifdef CONFIG_FB_WORK_IPP
|
||||
dstoffset = ((ypos_virtual*screen->y_res/var->yres) *screen->x_res + (xpos_virtual*screen->x_res)/var->xres )*2;
|
||||
ipp_req.src0.fmt = IPP_RGB_565;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user