From ba545d7e2388e81e985a43fc86d191590b923c90 Mon Sep 17 00:00:00 2001 From: Joey Pan Date: Wed, 4 Jun 2014 20:47:46 +0800 Subject: minui: avoid random screen frame at startup Clear framebuffer at init. [toddpoynor@google.com: forward port] Change-Id: Ie98c7724cd974dcacef3e3559a6fe492864a5e72 --- minui/graphics_fbdev.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/minui/graphics_fbdev.c b/minui/graphics_fbdev.c index a91ea8726..c0c1bcb1a 100644 --- a/minui/graphics_fbdev.c +++ b/minui/graphics_fbdev.c @@ -130,6 +130,8 @@ static gr_surface fbdev_init(minui_backend* backend) { return NULL; } + memset(bits, 0, fi.smem_len); + gr_framebuffer[0].width = vi.xres; gr_framebuffer[0].height = vi.yres; gr_framebuffer[0].row_bytes = fi.line_length; -- cgit v1.2.3