[apps/apps_container] Fix screen noise before the logo on n0100

Push a white screen before fetching the examm mode, as this fetch takes
some time and the screen noise becomes visible on a n0100 when
downloading a new software.
This commit is contained in:
Léa Saviot
2019-12-12 15:23:29 +01:00
committed by EmilieNumworks
parent 070d362f15
commit 88d52c6e9c

View File

@@ -207,7 +207,12 @@ bool AppsContainer::switchTo(App::Snapshot * snapshot) {
}
void AppsContainer::run() {
window()->setFrame(KDRect(0, 0, Ion::Display::Width, Ion::Display::Height));
KDRect screenRect = KDRect(0, 0, Ion::Display::Width, Ion::Display::Height);
window()->setFrame(screenRect);
/* We push a white screen here, because fetching the exam mode takes some time
* and it is visible when reflashing a N0100 (there is some noise on the
* screen before the logo appears). */
Ion::Display::pushRectUniform(screenRect, KDColorWhite);
if (GlobalPreferences::sharedGlobalPreferences()->examMode()) {
activateExamMode();
}