--- a/hedgewars/hwengine.pas Sun Apr 08 18:11:37 2012 +0200
+++ b/hedgewars/hwengine.pas Sun Apr 08 18:46:09 2012 +0200
@@ -250,31 +250,31 @@
end; //end case event.type_ of
end; //end while SDL_PollEvent(@event) <> 0 do
- if (cScreenResizeDelay <> 0) and (cScreenResizeDelay < RealTicks)
- and ((cNewScreenWidth <> cScreenWidth) or (cNewScreenHeight <> cScreenHeight)) then
- begin
- cScreenResizeDelay:= 0;
- cScreenWidth:= cNewScreenWidth;
- cScreenHeight:= cNewScreenHeight;
+ if (cScreenResizeDelay <> 0) and (cScreenResizeDelay < RealTicks) and
+ ((cNewScreenWidth <> cScreenWidth) or (cNewScreenHeight <> cScreenHeight)) then
+ begin
+ cScreenResizeDelay:= 0;
+ cScreenWidth:= cNewScreenWidth;
+ cScreenHeight:= cNewScreenHeight;
- ParseCommand('fullscr '+intToStr(LongInt(cFullScreen)), true);
- WriteLnToConsole('window resize: ' + IntToStr(cScreenWidth) + ' x ' + IntToStr(cScreenHeight));
- ScriptOnScreenResize();
- InitCameraBorders();
- InitTouchInterface();
- end;
+ ParseCommand('fullscr '+intToStr(LongInt(cFullScreen)), true);
+ WriteLnToConsole('window resize: ' + IntToStr(cScreenWidth) + ' x ' + IntToStr(cScreenHeight));
+ ScriptOnScreenResize();
+ InitCameraBorders();
+ InitTouchInterface();
+ end;
- if isTerminated = false then
- begin
- CurrTime:= SDL_GetTicks;
- if PrevTime + longword(cTimerInterval) <= CurrTime then
- begin
- DoTimer(CurrTime - PrevTime);
- PrevTime:= CurrTime
- end
- else SDL_Delay(1);
- IPCCheckSock();
- end;
+ if isTerminated = false then
+ begin
+ CurrTime:= SDL_GetTicks;
+ if PrevTime + longword(cTimerInterval) <= CurrTime then
+ begin
+ DoTimer(CurrTime - PrevTime);
+ PrevTime:= CurrTime
+ end
+ else SDL_Delay(1);
+ IPCCheckSock();
+ end;
end;
end;