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