Merge branch 'gingerbread' of git://github.com/CyanogenMod/android_bootable_recovery into gingerbread
This commit is contained in:
commit
d5d1fcdc96
@ -177,18 +177,18 @@ void gr_flip(void)
|
||||
#endif
|
||||
|
||||
/* copy data from the in-memory surface to the buffer we're about
|
||||
* to make active. */
|
||||
if( vi.bits_per_pixel == 16)
|
||||
{
|
||||
memcpy(gr_framebuffer[gr_active_fb].data, gr_mem_surface.data,
|
||||
vi.xres_virtual * vi.yres *2);
|
||||
}
|
||||
else
|
||||
* to make active. */
|
||||
if(vi.bits_per_pixel == 32)
|
||||
{
|
||||
gr_flip_32((unsigned *)gr_framebuffer[gr_active_fb].data, \
|
||||
(unsigned short *)gr_mem_surface.data,
|
||||
(vi.xres_virtual * vi.yres));
|
||||
}
|
||||
else
|
||||
{
|
||||
memcpy(gr_framebuffer[gr_active_fb].data, gr_mem_surface.data,
|
||||
vi.xres_virtual * vi.yres *2);
|
||||
}
|
||||
|
||||
/* inform the display driver */
|
||||
set_active_framebuffer(gr_active_fb);
|
||||
|
Loading…
x
Reference in New Issue
Block a user