summaryrefslogtreecommitdiffstats
path: root/minui
diff options
context:
space:
mode:
authorRebecca Schultz Zavin <rebecca@android.com>2009-06-05 16:56:07 -0700
committerRebecca Schultz Zavin <rebecca@android.com>2009-06-05 16:58:36 -0700
commit573fd7b68b789e5a4d0b3da3b499e5555e0faee0 (patch)
tree54e44b0fa41760785bba3fcadd43ed8bc15758d2 /minui
parent825915dc6c9a731895dfe8cf25becb81fc9f988f (diff)
downloadbootable_recovery-573fd7b68b789e5a4d0b3da3b499e5555e0faee0.zip
bootable_recovery-573fd7b68b789e5a4d0b3da3b499e5555e0faee0.tar.gz
bootable_recovery-573fd7b68b789e5a4d0b3da3b499e5555e0faee0.tar.bz2
Force the fb into 16 bpp mode in case the hw has some other default.
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
Diffstat (limited to 'minui')
-rw-r--r--minui/graphics.c1
1 files changed, 1 insertions, 0 deletions
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 @@ 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");
}