aboutsummaryrefslogtreecommitdiffstats
path: root/minui
diff options
context:
space:
mode:
authorJoey Pan <joey.pan@mediatek.com>2014-06-04 20:47:46 +0800
committerTodd Poynor <toddpoynor@google.com>2014-06-12 11:06:52 -0700
commitba545d7e2388e81e985a43fc86d191590b923c90 (patch)
tree8887da3181f2d44321749d146f3410a47c3a8b98 /minui
parent43772d26a5d8d31fd092a21edfca346f3b3901e7 (diff)
downloadbootable_recovery-ba545d7e2388e81e985a43fc86d191590b923c90.zip
bootable_recovery-ba545d7e2388e81e985a43fc86d191590b923c90.tar.gz
bootable_recovery-ba545d7e2388e81e985a43fc86d191590b923c90.tar.bz2
minui: avoid random screen frame at startup
Clear framebuffer at init. [toddpoynor@google.com: forward port] Change-Id: Ie98c7724cd974dcacef3e3559a6fe492864a5e72
Diffstat (limited to 'minui')
-rw-r--r--minui/graphics_fbdev.c2
1 files changed, 2 insertions, 0 deletions
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 @@ 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;