From b26c1167fc182d68140d2023dcacda89cd4d850e Mon Sep 17 00:00:00 2001 From: Matt Mower Date: Wed, 3 Feb 2016 21:05:57 -0600 Subject: GUI: Set brightness after gr_init() On at least one device I've tested (htc msm8960), setting the brightness after gr_init() is necessary for the splash to show. Note that at this point in the boot process, the settings file has not yet been read, so tw_brightness has its default value of max brightness. When settings are finally loaded, the correct brightness is loaded for the GUI. Change-Id: Ifc58c1dc80ed9e6f6b2a269a9bb6764038626c84 --- gui/gui.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/gui/gui.cpp b/gui/gui.cpp index f8a6a73e2..4c2c74b4d 100644 --- a/gui/gui.cpp +++ b/gui/gui.cpp @@ -733,6 +733,7 @@ std::string gui_lookup(const std::string& resource_name, const std::string& defa extern "C" int gui_init(void) { gr_init(); + TWFunc::Set_Brightness(DataManager::GetStrValue("tw_brightness")); // load and show splash screen if (PageManager::LoadPackage("splash", TWRES "splash.xml", "splash")) { -- cgit v1.2.3