From 25c2b242c389b0130ebe4ec2f2980458cf500363 Mon Sep 17 00:00:00 2001 From: Nightkingale <63483138+Nightkingale@users.noreply.github.com> Date: Sun, 5 May 2024 20:08:26 -0600 Subject: [PATCH] Replace OSSleepTicks() with SDL_Delay() --- source/screen.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/screen.cpp b/source/screen.cpp index 0d60bba..5522e7e 100644 --- a/source/screen.cpp +++ b/source/screen.cpp @@ -117,7 +117,7 @@ void draw_error_menu(const char* error_message) { draw_text("You will return to the main menu.", 64, 290, 50); SDL_RenderPresent(renderer); - OSSleepTicks(OSMillisecondsToTicks(5000)); + SDL_Delay(5000); } void draw_success_menu(const char* type, bool inkay_configured = false) { @@ -144,5 +144,5 @@ void draw_success_menu(const char* type, bool inkay_configured = false) { } SDL_RenderPresent(renderer); - OSSleepTicks(OSMillisecondsToTicks(5000)); + SDL_Delay(5000); } \ No newline at end of file