hedgewars/CCHandlers.inc
changeset 1121 d595dc56b4f3
parent 1120 eb5a9f86f9c6
child 1127 7e1b94a0fc1f
--- a/hedgewars/CCHandlers.inc	Sun Jul 27 19:37:24 2008 +0000
+++ b/hedgewars/CCHandlers.inc	Sun Jul 27 19:47:12 2008 +0000
@@ -456,8 +456,13 @@
 SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1);
 
 flags:= SDL_OPENGL or SDL_RESIZABLE;
-if cFullScreen then flags:= flags or SDL_FULLSCREEN
-               else SDL_WM_SetCaption('Hedgewars', nil);
+if cFullScreen then
+	begin
+	flags:= flags or SDL_FULLSCREEN;
+	cScreenWidth:= cInitWidth;
+	cScreenHeight:= cInitHeight
+	end
+	else SDL_WM_SetCaption('Hedgewars', nil);
 {$IFDEF DEBUGFILE}
 AddFileLog('Freeing old primary surface...');
 {$ENDIF}