minui: avoid random screen frame at startup

Clear framebuffer at init.

[toddpoynor@google.com: forward port]
Change-Id: Ie98c7724cd974dcacef3e3559a6fe492864a5e72
This commit is contained in:
Joey Pan
2014-06-04 20:47:46 +08:00
committed by Todd Poynor
parent 43772d26a5
commit ba545d7e23
+2
View File
@@ -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;