Only call timerBeginPeriod(1); on Windows, fixes Linux and Mac builds.

This commit is contained in:
OBattler
2024-12-24 20:29:44 +01:00
parent 45124363a5
commit 59baaaf5a6

View File

@@ -149,7 +149,9 @@ main_thread_fn()
if (dopause) if (dopause)
ack_pause(); ack_pause();
#ifdef Q_OS_WINDOWS
timeBeginPeriod(1); timeBeginPeriod(1);
#endif
plat_delay_ms(1); plat_delay_ms(1);
} }
} }
@@ -158,7 +160,9 @@ main_thread_fn()
for (uint8_t i = 1; i < GFXCARD_MAX; i ++) { for (uint8_t i = 1; i < GFXCARD_MAX; i ++) {
if (gfxcard[i]) { if (gfxcard[i]) {
ui_deinit_monitor(i); ui_deinit_monitor(i);
#ifdef Q_OS_WINDOWS
timeBeginPeriod(1); timeBeginPeriod(1);
#endif
plat_delay_ms(500); plat_delay_ms(500);
} }
} }