untech/TANDUM — Issue #3: onResume() Workaround For SDL_Window
Author: leffuy
Created: 2012-02-22 20:18:46+00:00
State: open

### Description
Currently the following code segment fails during the onResume() sequence in the Android system:

SDL_Log("Window recreation");
SDL_RecreateWindow((*(*system_objects).renderer).window, SDL_WINDOW_FULLSCREEN | SDL_WINDOW_OPENGL);
SDL_Log("Window recreation done, Getting new surface");
(*(*system_objects).renderer).screen = SDL_GetWindowSurface((*(*system_objects).renderer).window); //get a new handle to the screen if lost somehow

The Window cannot reacquire the primary rendering surface on the EGL level within the Android App Instance. This means the app needs to be completely destroyed and restarted in order for SDL to reacquire the screen (after a loss), in the current status of the tandum_incubator.

A resolution to this issue aims to successfully resume the application from a pause state.