From 573fd7b68b789e5a4d0b3da3b499e5555e0faee0 Mon Sep 17 00:00:00 2001 From: Rebecca Schultz Zavin Date: Fri, 5 Jun 2009 16:56:07 -0700 Subject: Force the fb into 16 bpp mode in case the hw has some other default. Signed-off-by: Rebecca Schultz Zavin --- minui/graphics.c | 1 + 1 file changed, 1 insertion(+) (limited to 'minui/graphics.c') diff --git a/minui/graphics.c b/minui/graphics.c index 06c5fdfcd..adbfc09da 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"); } -- cgit v1.2.3