minui: avoid random screen frame at startup
Clear framebuffer at init. [toddpoynor@google.com: forward port] Change-Id: Ie98c7724cd974dcacef3e3559a6fe492864a5e72
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user