summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 38ffc69)
raw | patch | inline | side by side (parent: 38ffc69)
author | fgsfds <pvt.fgsfds@gmail.com> | |
Wed, 7 Feb 2018 23:41:45 +0000 (02:41 +0300) | ||
committer | fgsfds <pvt.fgsfds@gmail.com> | |
Wed, 7 Feb 2018 23:41:45 +0000 (02:41 +0300) |
src/game/g_window.pas | patch | blob | history |
diff --git a/src/game/g_window.pas b/src/game/g_window.pas
index f7f06d89d2aa5e3fc8712b12f30d99e5c20cdbb9..e7f0db3cc291ff61828f91529ea1e550154b82d5 100644 (file)
--- a/src/game/g_window.pas
+++ b/src/game/g_window.pas
e_WriteLog('Setting display mode...', TMsgType.Notify);
wFlags := SDL_WINDOW_OPENGL {or SDL_WINDOW_RESIZABLE};
- if gFullscreen then wFlags := wFlags or SDL_WINDOW_FULLSCREEN else wFlags := wFlags or SDL_WINDOW_RESIZABLE;
+ if gFullscreen then wFlags := wFlags {or SDL_WINDOW_FULLSCREEN} else wFlags := wFlags or SDL_WINDOW_RESIZABLE;
if (not gFullscreen) and (not preserveGL) and gWinMaximized then wFlags := wFlags or SDL_WINDOW_MAXIMIZED else gWinMaximized := false;
if gFullscreen then
begin
KillGLWindow(preserveGL);
h_Wnd := SDL_CreateWindow(PChar(wTitle), gWinRealPosX, gWinRealPosY, gScreenWidth, gScreenHeight, wFlags);
+ if gFullscreen then
+ SDL_SetWindowFullscreen(h_Wnd, SDL_WINDOW_FULLSCREEN);
if (h_Wnd = nil) then exit;
end;
wasFullscreen := gFullscreen;