From 80bd165150bf2bfc21ce883ccba6d95ed16e082d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C2=A8Paul?= <¨paul@modaco.com¨> Date: Tue, 26 Apr 2016 16:49:58 +0100 Subject: Restore TW_SCREEN_BLANK_ON_BOOT functionality. This is required for a number of devices, particularly now that custom graphics support is deprecated. This change is required to officially support TWRP on the Huawei Plank (aka the Honor 7). Change-Id: Ie16ec557c75654c9c9e7a2877aee3339fc214d05 --- minuitwrp/graphics.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'minuitwrp') diff --git a/minuitwrp/graphics.cpp b/minuitwrp/graphics.cpp index 47325d01e..c8ea5cb73 100644 --- a/minuitwrp/graphics.cpp +++ b/minuitwrp/graphics.cpp @@ -360,6 +360,12 @@ int gr_init(void) gr_flip(); gr_flip(); +#ifdef TW_SCREEN_BLANK_ON_BOOT + printf("TW_SCREEN_BLANK_ON_BOOT := true\n"); + gr_fb_blank(true); + gr_fb_blank(false); +#endif + return 0; } -- cgit v1.2.3