Stop memory management on blanking overlay graphics
This prevents a crash in TWRP when trying to blank
the screen on devices that are using overlay graphics.
Change-Id: I155868616ffa1b211e97be97e4abe8b03dad7ca0
diff --git a/minuitwrp/graphics.c b/minuitwrp/graphics.c
index e71693a..1144640 100644
--- a/minuitwrp/graphics.c
+++ b/minuitwrp/graphics.c
@@ -831,16 +831,16 @@
int gr_fb_blank(int blank)
{
int ret;
- if (blank)
- free_overlay(gr_fb_fd);
+ //if (blank)
+ //free_overlay(gr_fb_fd);
ret = ioctl(gr_fb_fd, FBIOBLANK, blank ? FB_BLANK_POWERDOWN : FB_BLANK_UNBLANK);
if (ret < 0)
perror("ioctl(): blank");
- if (!blank)
- allocate_overlay(gr_fb_fd, gr_framebuffer);
- return ret;
+ //if (!blank)
+ //allocate_overlay(gr_fb_fd, gr_framebuffer);
+ return ret;
}
int gr_get_surface(gr_surface* surface)