equal
deleted
inserted
replaced
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(); |