commit | ba545d7e2388e81e985a43fc86d191590b923c90 | [log] [tgz] |
---|---|---|
author | Joey Pan <joey.pan@mediatek.com> | Wed Jun 04 20:47:46 2014 +0800 |
committer | Todd Poynor <toddpoynor@google.com> | Thu Jun 12 11:06:52 2014 -0700 |
tree | 8887da3181f2d44321749d146f3410a47c3a8b98 | |
parent | 43772d26a5d8d31fd092a21edfca346f3b3901e7 [diff] |
minui: avoid random screen frame at startup Clear framebuffer at init. [toddpoynor@google.com: forward port] Change-Id: Ie98c7724cd974dcacef3e3559a6fe492864a5e72
diff --git a/minui/graphics_fbdev.c b/minui/graphics_fbdev.c index a91ea87..c0c1bcb 100644 --- a/minui/graphics_fbdev.c +++ b/minui/graphics_fbdev.c
@@ -130,6 +130,8 @@ 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;