hedgewars/hwengine.pas
changeset 8354 c25bee85d6f8
parent 8350 14b938faec69
child 8363 0b4ac686fc44
child 8370 0c79946e96f8
equal deleted inserted replaced
8352:ab7f22530ae0 8354:c25bee85d6f8
   269 
   269 
   270         if (cScreenResizeDelay <> 0) and (cScreenResizeDelay < RealTicks) and
   270         if (cScreenResizeDelay <> 0) and (cScreenResizeDelay < RealTicks) and
   271            ((cNewScreenWidth <> cScreenWidth) or (cNewScreenHeight <> cScreenHeight)) then
   271            ((cNewScreenWidth <> cScreenWidth) or (cNewScreenHeight <> cScreenHeight)) then
   272         begin
   272         begin
   273             cScreenResizeDelay:= 0;
   273             cScreenResizeDelay:= 0;
   274             cScreenWidth:= cNewScreenWidth;
   274             cWindowedWidth:= cNewScreenWidth;
   275             cScreenHeight:= cNewScreenHeight;
   275             cWindowedHeight:= cNewScreenHeight;
       
   276             cScreenWidth:= cWindowedWidth;
       
   277             cScreenHeight:= cWindowedHeight;
   276 
   278 
   277             ParseCommand('fullscr '+intToStr(LongInt(cFullScreen)), true);
   279             ParseCommand('fullscr '+intToStr(LongInt(cFullScreen)), true);
   278             WriteLnToConsole('window resize: ' + IntToStr(cScreenWidth) + ' x ' + IntToStr(cScreenHeight));
   280             WriteLnToConsole('window resize: ' + IntToStr(cScreenWidth) + ' x ' + IntToStr(cScreenHeight));
   279             ScriptOnScreenResize();
   281             ScriptOnScreenResize();
   280             InitCameraBorders();
   282             InitCameraBorders();