Force the fb into 16 bpp mode in case the hw has some other default.
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
This commit is contained in:
parent
825915dc6c
commit
573fd7b68b
1 changed files with 1 additions and 0 deletions
|
@ -115,6 +115,7 @@ static void set_active_framebuffer(unsigned n)
|
|||
if (n > 1) return;
|
||||
vi.yres_virtual = vi.yres * 2;
|
||||
vi.yoffset = n * vi.yres;
|
||||
vi.bits_per_pixel = 16;
|
||||
if (ioctl(gr_fb_fd, FBIOPUT_VSCREENINFO, &vi) < 0) {
|
||||
perror("active fb swap failed");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue