Skip to content

Commit

Permalink
Replace OSSleepTicks() with SDL_Delay()
Browse files Browse the repository at this point in the history
  • Loading branch information
Nightkingale committed May 6, 2024
1 parent 5ddc323 commit 25c2b24
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/screen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -144,5 +144,5 @@ void draw_success_menu(const char* type, bool inkay_configured = false) {
}

SDL_RenderPresent(renderer);
OSSleepTicks(OSMillisecondsToTicks(5000));
SDL_Delay(5000);
}

0 comments on commit 25c2b24

Please sign in to comment.