Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Snippets Groups Projects
Commit ba545d7e authored by Joey Pan's avatar Joey Pan Committed by Todd Poynor
Browse files

minui: avoid random screen frame at startup

Clear framebuffer at init.

[toddpoynor@google.com: forward port]
Change-Id: Ie98c7724cd974dcacef3e3559a6fe492864a5e72
parent 43772d26
Branches
No related tags found
No related merge requests found
...@@ -130,6 +130,8 @@ static gr_surface fbdev_init(minui_backend* backend) { ...@@ -130,6 +130,8 @@ static gr_surface fbdev_init(minui_backend* backend) {
return NULL; return NULL;
} }
memset(bits, 0, fi.smem_len);
gr_framebuffer[0].width = vi.xres; gr_framebuffer[0].width = vi.xres;
gr_framebuffer[0].height = vi.yres; gr_framebuffer[0].height = vi.yres;
gr_framebuffer[0].row_bytes = fi.line_length; gr_framebuffer[0].row_bytes = fi.line_length;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment