commit | 573fd7b68b789e5a4d0b3da3b499e5555e0faee0 | [log] [tgz] |
---|---|---|
author | Rebecca Schultz Zavin <rebecca@android.com> | Fri Jun 05 16:56:07 2009 -0700 |
committer | Rebecca Schultz Zavin <rebecca@android.com> | Fri Jun 05 16:58:36 2009 -0700 |
tree | 54e44b0fa41760785bba3fcadd43ed8bc15758d2 | |
parent | 825915dc6c9a731895dfe8cf25becb81fc9f988f [diff] |
Force the fb into 16 bpp mode in case the hw has some other default. Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
diff --git a/minui/graphics.c b/minui/graphics.c index 06c5fdf..adbfc09 100644 --- a/minui/graphics.c +++ b/minui/graphics.c
@@ -115,6 +115,7 @@ 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"); }