hedgewars/hwengine.pas
changeset 6611 d9d00e537010
parent 6603 ef9ed71e3cf7
child 6634 e00762923086
--- a/hedgewars/hwengine.pas	Sun Jan 29 00:48:39 2012 +0100
+++ b/hedgewars/hwengine.pas	Sun Jan 29 02:45:12 2012 +0100
@@ -191,18 +191,16 @@
                     else if event.window.event = SDL_WINDOWEVENT_RESTORED then
                         begin
                         GameState:= previousGameState;
-{$IFDEF ANDROID}        //This call is used to reinitialize the glcontext and reload the textures
+{$IFDEF ANDROID}
+                        //This call is used to reinitialize the glcontext and reload the textures
                         ParseCommand('fullscr '+intToStr(LongInt(cFullScreen)), true);
 {$ENDIF}
                         end
                     else if event.window.event = SDL_WINDOWEVENT_RESIZED then
                         begin
-                        // way too broken right now
-                        (*
                         cNewScreenWidth:= max(2 * (event.window.data1 div 2), cMinScreenWidth);
                         cNewScreenHeight:= max(2 * (event.window.data2 div 2), cMinScreenHeight);
-                        cScreenResizeDelay:= RealTicks+500;
-                        *)
+                        cScreenResizeDelay:= RealTicks + 500{$IFDEF IPHONEOS}div 2{$ENDIF};
                         end;
                         
                 SDL_FINGERMOTION: