From 05d18c9a74910a61b5111674678dc9fc624e91a3 Mon Sep 17 00:00:00 2001 From: Dees Troy Date: Mon, 4 Aug 2014 18:17:07 +0000 Subject: 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 --- minuitwrp/graphics.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'minuitwrp') diff --git a/minuitwrp/graphics.c b/minuitwrp/graphics.c index e71693a74..11446409c 100644 --- a/minuitwrp/graphics.c +++ b/minuitwrp/graphics.c @@ -831,16 +831,16 @@ gr_pixel *gr_fb_data(void) 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) -- cgit v1.2.3