hedgewars/hwengine.pas
changeset 8354 c25bee85d6f8
parent 8350 14b938faec69
child 8363 0b4ac686fc44
child 8370 0c79946e96f8
--- a/hedgewars/hwengine.pas	Thu Jan 03 15:58:23 2013 +0200
+++ b/hedgewars/hwengine.pas	Thu Jan 03 15:59:30 2013 +0200
@@ -271,8 +271,10 @@
            ((cNewScreenWidth <> cScreenWidth) or (cNewScreenHeight <> cScreenHeight)) then
         begin
             cScreenResizeDelay:= 0;
-            cScreenWidth:= cNewScreenWidth;
-            cScreenHeight:= cNewScreenHeight;
+            cWindowedWidth:= cNewScreenWidth;
+            cWindowedHeight:= cNewScreenHeight;
+            cScreenWidth:= cWindowedWidth;
+            cScreenHeight:= cWindowedHeight;
 
             ParseCommand('fullscr '+intToStr(LongInt(cFullScreen)), true);
             WriteLnToConsole('window resize: ' + IntToStr(cScreenWidth) + ' x ' + IntToStr(cScreenHeight));