From 4b35e9e2785511299155631cd69f8d3eb61899ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Tue, 8 Aug 2017 15:58:25 +0200 Subject: [PATCH] Reset the UI state properly in NativeInit. Fixes #9771 --- UI/NativeApp.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/UI/NativeApp.cpp b/UI/NativeApp.cpp index 0f293b8831..4f91c7a8cd 100644 --- a/UI/NativeApp.cpp +++ b/UI/NativeApp.cpp @@ -252,7 +252,7 @@ int NativeMix(short *audio, int num_samples) { num_samples = __AudioMix(audio, num_samples, sample_rate > 0 ? sample_rate : 44100); #ifdef _WIN32 - winAudioBackend->Update(); + winAudioBackend->Update*(); #endif return num_samples; @@ -307,6 +307,9 @@ void NativeInit(int argc, const char *argv[], const char *savegame_dir, const ch InitFastMath(cpu_info.bNEON); SetupAudioFormats(); + // Make sure UI state is MENU. + ResetUIState(); + bool skipLogo = false; setlocale( LC_ALL, "C" ); std::string user_data_path = savegame_dir;