X-Git-Url: http://deadsoftware.ru/gitweb?a=blobdiff_plain;f=src%2Fgame%2Fsdl2%2Fg_system.pas;h=85b8b6d089ac4b931a8928957e32a8d1aea96f28;hb=e29288453fa69bd586c70120e148ff85e4b24df2;hp=c6f2cbf9f1c5e127aa62fe2309eb3be4ade48b02;hpb=2d08438ad214136a161af303cc896e0d5ff706b8;p=d2df-sdl.git diff --git a/src/game/sdl2/g_system.pas b/src/game/sdl2/g_system.pas index c6f2cbf..85b8b6d 100644 --- a/src/game/sdl2/g_system.pas +++ b/src/game/sdl2/g_system.pas @@ -19,10 +19,6 @@ interface uses Utils; - (* --- Utils --- *) - function sys_GetTicks (): Int64; - procedure sys_Delay (ms: Integer); - (* --- Graphics --- *) function sys_GetDisplayModes (bpp: Integer): SSArray; function sys_SetDisplayMode (w, h, bpp: Integer; fullscreen, maximized: Boolean): Boolean; @@ -47,9 +43,10 @@ implementation SysUtils, SDL2, Math, ctypes, e_log, e_input, e_sound, {$IFDEF ENABLE_HOLMES} - g_holmes, sdlcarcass, fui_ctls, + sdlcarcass, {$ENDIF} - g_touch, g_options, g_console, g_game, g_menu, g_gui, g_basic; + g_touch, g_options, g_console, g_game, g_basic + ; const GameTitle = 'Doom 2D: Forever (SDL 2, %s)'; @@ -63,18 +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 --------- *) - - function sys_GetTicks (): Int64; - begin - result := SDL_GetTicks() - end; - - procedure sys_Delay (ms: Integer); - begin - SDL_Delay(ms) - end; - (* --------- Graphics --------- *) function GetTitle (): PChar;