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
This commit is contained in:
@@ -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")) {
|
||||
|
||||
Reference in New Issue
Block a user