From 66c02372de2fcee63e7aa4e4015c59afe8b05355 Mon Sep 17 00:00:00 2001 From: turbocat Date: Mon, 4 Oct 2021 17:20:11 +0000 Subject: [PATCH] OpenTyrian: - uSDL_Delay is no longer needed. git-svn-id: svn://kolibrios.org@9212 a494cfbc-eb01-0410-851d-a64ba20cac60 --- contrib/games/opentyrian/SDL/uSDL.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/contrib/games/opentyrian/SDL/uSDL.c b/contrib/games/opentyrian/SDL/uSDL.c index 41b1a2dbf..a12a22e22 100644 --- a/contrib/games/opentyrian/SDL/uSDL.c +++ b/contrib/games/opentyrian/SDL/uSDL.c @@ -41,13 +41,10 @@ void uSDL_SetWinCenter(unsigned w, unsigned h){ ksys_screen_t screen_size= _ksys_screen_size(); int new_x = screen_size.w/2-w/2; int new_y = screen_size.h/2-h/2; - _ksys_change_window(new_x, new_y, -1, -1); + _ksys_change_window(new_x, new_y, -1, -1); } void uSDL_Delay(unsigned ms){ - unsigned start = SDL_GetTicks(); - do{ - asm_inline("int $0x40" :: "a"(5),"b"(1)); - }while (SDL_GetTicks()-start < ms); -} \ No newline at end of file + SDL_Delay(ms); +}