hedgewars/hwengine.pas
changeset 8357 d7bef04c99d4
parent 8354 c25bee85d6f8
child 8363 0b4ac686fc44
child 8370 0c79946e96f8
equal deleted inserted replaced
8355:df0ea4323295 8357:d7bef04c99d4
   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();
   281             InitTouchInterface();
   283             InitTouchInterface();
       
   284             SendIPC('W' + IntToStr(cScreenWidth) + 'x' + IntToStr(cScreenHeight));
   282         end;
   285         end;
   283 
   286 
   284         CurrTime:= SDL_GetTicks();
   287         CurrTime:= SDL_GetTicks();
   285         if PrevTime + longword(cTimerInterval) <= CurrTime then
   288         if PrevTime + longword(cTimerInterval) <= CurrTime then
   286         begin
   289         begin