mirror of
https://github.com/stenzek/duckstation.git
synced 2025-06-30 15:20:20 +00:00
FullscreenUI: Fix fade on system start/stop
This commit is contained in:
parent
376a2e8d4d
commit
355c17bde9
@ -980,9 +980,11 @@ void FullscreenUI::OnSystemStarting()
|
||||
if (!IsInitialized())
|
||||
return;
|
||||
|
||||
s_state.current_main_window = MainWindowType::None;
|
||||
QueueResetFocus(FocusResetType::ViewChanged);
|
||||
UpdateRunIdleState();
|
||||
BeginTransition(LONG_TRANSITION_TIME, []() {
|
||||
s_state.current_main_window = MainWindowType::None;
|
||||
QueueResetFocus(FocusResetType::ViewChanged);
|
||||
UpdateRunIdleState();
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
@ -1031,7 +1033,7 @@ void FullscreenUI::OnSystemDestroyed()
|
||||
s_state.pause_menu_was_open = false;
|
||||
s_state.was_paused_on_quick_menu_open = false;
|
||||
s_state.current_pause_submenu = PauseSubMenu::None;
|
||||
ReturnToMainWindow();
|
||||
ReturnToMainWindow(LONG_TRANSITION_TIME);
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user