From: DeaDDooMER Date: Sat, 19 Jun 2021 14:44:54 +0000 (+0300) Subject: system: remove sys_Delay X-Git-Url: http://deadsoftware.ru/gitweb?a=commitdiff_plain;h=bcad110d1bb2ff50900f9ca2c42b50c1c7b68445;p=d2df-sdl.git system: remove sys_Delay --- diff --git a/src/game/Doom2DF.lpr b/src/game/Doom2DF.lpr index dd58577..37c02e4 100644 --- a/src/game/Doom2DF.lpr +++ b/src/game/Doom2DF.lpr @@ -296,7 +296,7 @@ begin Frame := Time end else - sys_Delay(1); + Sleep(1); e_SoundUpdate(); end; diff --git a/src/game/sdl/g_system.pas b/src/game/sdl/g_system.pas index c228aee..0067bbc 100644 --- a/src/game/sdl/g_system.pas +++ b/src/game/sdl/g_system.pas @@ -19,9 +19,6 @@ interface uses Utils; - (* --- Utils --- *) - procedure sys_Delay (ms: Integer); - (* --- Graphics --- *) function sys_GetDisplayModes (bpp: Integer): SSArray; function sys_SetDisplayMode (w, h, bpp: Integer; fullscreen, maximized: Boolean): Boolean; @@ -65,13 +62,6 @@ implementation JoystickHatState: array [0..e_MaxJoys - 1, 0..e_MaxJoyHats - 1, HAT_LEFT..HAT_DOWN] of Boolean; JoystickZeroAxes: array [0..e_MaxJoys - 1, 0..e_MaxJoyAxes - 1] of Integer; - (* --------- Utils --------- *) - - procedure sys_Delay (ms: Integer); - begin - SDL_Delay(ms) - end; - (* --------- Graphics --------- *) function GetDriver (): AnsiString; diff --git a/src/game/sdl2/g_system.pas b/src/game/sdl2/g_system.pas index ca33411..89127ad 100644 --- a/src/game/sdl2/g_system.pas +++ b/src/game/sdl2/g_system.pas @@ -19,9 +19,6 @@ interface uses Utils; - (* --- Utils --- *) - procedure sys_Delay (ms: Integer); - (* --- Graphics --- *) function sys_GetDisplayModes (bpp: Integer): SSArray; function sys_SetDisplayMode (w, h, bpp: Integer; fullscreen, maximized: Boolean): Boolean; @@ -63,13 +60,6 @@ implementation JoystickHatState: array [0..e_MaxJoys - 1, 0..e_MaxJoyHats - 1, HAT_LEFT..HAT_DOWN] of Boolean; JoystickZeroAxes: array [0..e_MaxJoys - 1, 0..e_MaxJoyAxes - 1] of Integer; - (* --------- Utils --------- *) - - procedure sys_Delay (ms: Integer); - begin - SDL_Delay(ms) - end; - (* --------- Graphics --------- *) function GetTitle (): AnsiString; diff --git a/src/game/stub/g_system.pas b/src/game/stub/g_system.pas index ab42c12..a1e3473 100644 --- a/src/game/stub/g_system.pas +++ b/src/game/stub/g_system.pas @@ -19,9 +19,6 @@ interface uses Utils; - (* --- Utils --- *) - procedure sys_Delay (ms: Integer); - (* --- Graphics --- *) function sys_GetDisplayModes (bpp: Integer): SSArray; function sys_SetDisplayMode (w, h, bpp: Integer; fullscreen, maximized: Boolean): Boolean; @@ -44,13 +41,6 @@ implementation uses SysUtils; - (* --------- Utils --------- *) - - procedure sys_Delay (ms: Integer); - begin - Sleep(ms) - end; - (* --------- Graphics --------- *) procedure sys_Repaint;