hedgewars/hwengine.pas
changeset 11853 837f9f1b84a5
parent 11835 8f7e28428f3e
child 12186 322aaad4a93d
equal deleted inserted replaced
11852:d7227dc3b397 11853:837f9f1b84a5
   203                                 previousGameState:= GameState;
   203                                 previousGameState:= GameState;
   204                                 GameState:= gsSuspend;
   204                                 GameState:= gsSuspend;
   205                                 end;
   205                                 end;
   206                         SDL_WINDOWEVENT_RESTORED:
   206                         SDL_WINDOWEVENT_RESTORED:
   207                                 begin
   207                                 begin
   208                                 GameState:= previousGameState;
   208                                 if GameState = gsSuspend then
       
   209                                     GameState:= previousGameState;
   209 {$IFDEF ANDROID}
   210 {$IFDEF ANDROID}
   210                                 //This call is used to reinitialize the glcontext and reload the textures
   211                                 //This call is used to reinitialize the glcontext and reload the textures
   211                                 ParseCommand('fullscr '+intToStr(LongInt(cFullScreen)), true);
   212                                 ParseCommand('fullscr '+intToStr(LongInt(cFullScreen)), true);
   212 {$ENDIF}
   213 {$ENDIF}
   213                                 end;
   214                                 end;