--- 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}