Use frontend value for fullscreening.
--- a/hedgewars/hwengine.pas Thu Aug 25 16:17:15 2011 -0400
+++ b/hedgewars/hwengine.pas Fri Aug 26 16:16:27 2011 -0400
@@ -242,6 +242,8 @@
{$ENDIF}
cMinScreenWidth:= cScreenWidth;
cMinScreenHeight:= cScreenHeight;
+ cOrigScreenWidth:= cScreenWidth;
+ cOrigScreenHeight:= cScreenHeight;
if 480 < cMinScreenWidth then cMinScreenWidth:= 480;
if 320 < cMinScreenHeight then cMinScreenHeight:= 320;
--- a/hedgewars/uStore.pas Thu Aug 25 16:17:15 2011 -0400
+++ b/hedgewars/uStore.pas Fri Aug 26 16:16:27 2011 -0400
@@ -1006,7 +1006,8 @@
flags:= flags or SDL_WINDOW_BORDERLESS or SDL_WINDOW_RESIZABLE;
{$ENDIF}
- SDLwindow:= SDL_CreateWindow('Hedgewars', x, y, cScreenWidth, cScreenHeight, flags);
+ if cFullScreen then SDLwindow:= SDL_CreateWindow('Hedgewars', x, y, cOrigScreenWidth, cOrigScreenHeight, flags);
+ else SDLwindow:= SDL_CreateWindow('Hedgewars', x, y, cScreenWidth, cScreenHeight, flags);
SDLTry(SDLwindow <> nil, true);
{$ELSE}
flags:= SDL_OPENGL or SDL_RESIZABLE;
--- a/hedgewars/uVariables.pas Thu Aug 25 16:17:15 2011 -0400
+++ b/hedgewars/uVariables.pas Fri Aug 26 16:16:27 2011 -0400
@@ -25,10 +25,12 @@
var
/////// init flags ///////
- cMinScreenWidth : LongInt = 480;
- cMinScreenHeight : LongInt = 320;
- cScreenWidth : LongInt = 1024;
- cScreenHeight : LongInt = 768;
+ cMinScreenWidth : LongInt = 480;
+ cMinScreenHeight : LongInt = 320;
+ cScreenWidth : LongInt = 1024;
+ cScreenHeight : LongInt = 768;
+ cOrigScreenWidth : LongInt = 1024;
+ cOrigScreenHeight : LongInt = 768;
cBits : LongInt = 32;
ipcPort : Word = 0;
cFullScreen : boolean = false;