Fix ScreenLogic waitFade logic.

This commit is contained in:
StackZ
2020-11-28 13:40:50 +01:00
parent 155058f9a1
commit ef8f858814
+6 -1
View File
@@ -308,7 +308,12 @@ void Gui::DrawScreen(bool stack) {
void Gui::ScreenLogic(u32 hDown, u32 hHeld, touchPosition touch, bool waitFade, bool stack) {
if (waitFade) {
if (!fadein && !fadeout && !fadein2 && !fadeout2) {
if (!stack) if (usedScreen) usedScreen->Logic(hDown, hHeld, touch);
if (!stack) {
if (usedScreen) usedScreen->Logic(hDown, hHeld, touch);
} else {
if (!screens.empty()) screens.top()->Logic(hDown, hHeld, touch);
}
} else {
if (!screens.empty()) screens.top()->Logic(hDown, hHeld, touch);