summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: fa19c8b)
raw | patch | inline | side by side (parent: fa19c8b)
author | Ketmar Dark <ketmar@ketmar.no-ip.org> | |
Fri, 22 Sep 2017 08:44:42 +0000 (11:44 +0300) | ||
committer | Ketmar Dark <ketmar@ketmar.no-ip.org> | |
Fri, 22 Sep 2017 08:45:09 +0000 (11:45 +0300) |
src/game/g_window.pas | patch | blob | history |
diff --git a/src/game/g_window.pas b/src/game/g_window.pas
index 479ffcb16c69fd93924066f95ff3cc1aa442831d..62e5574b749b50a95a74032ba54afbb6fede2748 100644 (file)
--- a/src/game/g_window.pas
+++ b/src/game/g_window.pas
var
h_Wnd: PSDL_Window = nil;
h_GL: TSDL_GLContext = nil;
- wFlags: LongWord = 0;
Time, Time_Delta, Time_Old: Int64;
flag: Boolean;
+{$IF not DEFINED(HEADLESS)}
wTitle: PChar = nil;
+{$ENDIF}
wNeedTimeReset: Boolean = false;
wMinimized: Boolean = false;
wLoadingProgress: Boolean = false;
{$IF not DEFINED(HEADLESS)}
var
mode, cmode: TSDL_DisplayMode;
+ wFlags: LongWord = 0;
{$ENDIF}
begin
{$IF not DEFINED(HEADLESS)}
function g_Window_SetSize (w, h: Word; fullscreen: Boolean): Boolean;
+{$IF not DEFINED(HEADLESS)}
var
preserve: Boolean;
+{$ENDIF}
begin
result := false;
{$IF not DEFINED(HEADLESS)}
gWinSizeX := gScreenWidth;
gWinSizeY := gScreenHeight;
+{$IF not DEFINED(HEADLESS)}
wTitle := Title;
+{$ENDIF}
e_WriteLog('Creating window', TMsgType.Notify);
if not g_Window_SetDisplay() then