1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-25 05:30:37 +02:00

Aligen framebuffer data at page boundary.

This commit is contained in:
Lars-Peter Clausen 2009-08-25 17:32:15 +02:00 committed by Xiangfu Liu
parent 93a92952e6
commit 297d16a6ec

View File

@ -201,9 +201,9 @@ static int jzfb_check_var(struct fb_var_screeninfo *var, struct fb_info *fb)
fb->var.bits_per_pixel = 32;
break;
case 32:
case 24:
var->transp.offset = 24;
var->transp.length = 8;
case 24:
var->red.offset = 16;
var->red.length = 8;
var->green.offset = 8;
@ -313,11 +313,11 @@ static int jzfb_alloc_vidmem(struct jzfb *jzfb)
}
framedesc = jzfb->devmem;
jzfb->vidmem = jzfb->devmem + sizeof(struct jzfb_framedesc);
framedesc = jzfb->devmem + max_videosize;
jzfb->vidmem = jzfb->devmem;
framedesc->next = jzfb->devmem_phys;
framedesc->addr = jzfb->devmem_phys + sizeof(struct jzfb_framedesc);
framedesc->next = jzfb->devmem_phys + max_videosize;
framedesc->addr = jzfb->devmem_phys;
framedesc->id = 0;
framedesc->cmd = 0;
framedesc->cmd |= max_videosize / 4;