Merge pull request #9653 from xiushudongfang/UI_background_android

UI: Allow choosing bgs (android)
This commit is contained in:
Unknown W. Brackets
2017-04-29 20:23:58 -04:00
committed by GitHub
2 changed files with 33 additions and 0 deletions
+4
View File
@@ -863,6 +863,10 @@ void HandleGlobalMessage(const std::string &msg, const std::string &value) {
inputboxValue.clear();
}
if (msg == "bgImage_updated") {
if (!value.empty()) {
std::string dest = GetSysDirectory(DIRECTORY_SYSTEM) + (endsWithNoCase(value, ".jpg") ? "background.jpg" : "background.png");
File::Copy(value, dest);
}
UIBackgroundShutdown();
UIBackgroundInit(*uiContext);
}