diff -r 814683bbd230 -r fa518383563b hedgewars/hwengine.pas --- a/hedgewars/hwengine.pas Tue Jan 24 18:11:56 2012 +0100 +++ b/hedgewars/hwengine.pas Thu Jan 26 02:06:16 2012 +0100 @@ -167,6 +167,7 @@ while isTerminated = false do begin SDL_PumpEvents(); + while SDL_PeepEvents(@event, 1, SDL_GETEVENT, {$IFDEF SDL13}SDL_FIRSTEVENT, SDL_LASTEVENT{$ELSE}SDL_ALLEVENTS{$ENDIF}) > 0 do begin case event.type_ of @@ -190,6 +191,9 @@ 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 + ParseCommand('fullscr '+intToStr(LongInt(cFullScreen)), true); +{$ENDIF} end else if event.window.event = SDL_WINDOWEVENT_RESIZED then begin @@ -291,7 +295,7 @@ begin {$IFDEF HWLIBRARY} cBits:= 32; - cFullScreen:= false; + cFullScreen:= true; cTimerInterval:= 8; cShowFPS:= {$IFDEF DEBUGFILE}true{$ELSE}false{$ENDIF}; val(gameArgs[0], ipcPort);