hedgewars/hwengine.pas
changeset 8357 d7bef04c99d4
parent 8354 c25bee85d6f8
child 8363 0b4ac686fc44
child 8370 0c79946e96f8
--- a/hedgewars/hwengine.pas	Wed Jan 02 23:13:14 2013 +0100
+++ b/hedgewars/hwengine.pas	Fri Jan 04 02:58:19 2013 +0100
@@ -271,14 +271,17 @@
            ((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));
             ScriptOnScreenResize();
             InitCameraBorders();
             InitTouchInterface();
+            SendIPC('W' + IntToStr(cScreenWidth) + 'x' + IntToStr(cScreenHeight));
         end;
 
         CurrTime:= SDL_GetTicks();