Fri, 17 Aug 2018 22:37:16 +0100riscos: Fix returning from full-screen to 16M colour modes SDL-1.2
Cameron Cawley <ccawley2011@gmail.com> [Fri, 17 Aug 2018 22:37:16 +0100] rev 12502
riscos: Fix returning from full-screen to 16M colour modes

Fri, 04 Jan 2019 23:39:27 +0100Android: fixed immediate transition to pause and resume.
Sylvain Becker <sylvain.becker@gmail.com> [Fri, 04 Jan 2019 23:39:27 +0100] rev 12501
Android: fixed immediate transition to pause and resume.

"Pause" transition will add events:
SDL_WINDOWEVENT_ENTER
SDL_WINDOWEVENT_FOCUS_LOST
SDL_WINDOWEVENT_MINIMIZED
SDL_APP_WILL ENTER BACKGROUND
SDL_APP_DID ENTER BACKGROUND

"Resume" transition will add events:
SDL_APP_WILL ENTER FOREGROUND
SDL_APP_DID ENTER FOREGROUND
SDL_WINDOWEVENT_FOCUS_GAINED
SDL_WINDOWEVENT_RESTORED

If Android application doesn't empty the event loop in between, it enters in
"paused" state when SDL_WINDOWEVENT_RESTORED is fetched.

See bug 3250 for pratical case.

Fri, 04 Jan 2019 23:11:21 +0100Android: make Android_PumpEvents() more readable
Sylvain Becker <sylvain.becker@gmail.com> [Fri, 04 Jan 2019 23:11:21 +0100] rev 12500
Android: make Android_PumpEvents() more readable
No behavior change in this commit.

Thu, 03 Jan 2019 23:22:50 +0100Android: concurrency issue with egl_surface EGL_BAD_SURFACE - (bug 4142)
Sylvain Becker <sylvain.becker@gmail.com> [Thu, 03 Jan 2019 23:22:50 +0100] rev 12499
Android: concurrency issue with egl_surface EGL_BAD_SURFACE - (bug 4142)

Occurs when application goes to background:
- Java activity is destroying SurfaceView holder and "egl_surface" (in onNativeSurfaceDestroyed())
- While native thread is in Android_GLES_SwapWindow(), prepared to call SDL_EGL_SwapBuffers()

The error is "call to eglSwapBuffers failed, reporting an error of EGL_BAD_SURFACE"

It an be reproduced easily by adding a SDL_Delay(100) at the begining of SDL_EGL_SwapBuffers(),
and putting the application into background.

Thu, 03 Jan 2019 20:18:29 +0100Android: use Mutex instead of Semphore for bug 4142
Sylvain Becker <sylvain.becker@gmail.com> [Thu, 03 Jan 2019 20:18:29 +0100] rev 12498
Android: use Mutex instead of Semphore for bug 4142

Thu, 03 Jan 2019 16:22:33 +0100Android: prevent the error message from SDL_EGL_CreateSurface() to be masked.
Sylvain Becker <sylvain.becker@gmail.com> [Thu, 03 Jan 2019 16:22:33 +0100] rev 12497
Android: prevent the error message from SDL_EGL_CreateSurface() to be masked.

Thu, 03 Jan 2019 14:18:06 +0100Fixed bug 4142 - Concurrency issues in Android backend
Sylvain Becker <sylvain.becker@gmail.com> [Thu, 03 Jan 2019 14:18:06 +0100] rev 12496
Fixed bug 4142 - Concurrency issues in Android backend

Use a semaphore to prevent concurrency issues between Java Activity and Native thread code, when using 'Android_Window'.
(Eg. Java sending Touch events, while native code is destroying the main SDL_Window. )

Thu, 03 Jan 2019 13:38:33 +0100Android: minor preparation for bug 4142 (concurrency issues)
Sylvain Becker <sylvain.becker@gmail.com> [Thu, 03 Jan 2019 13:38:33 +0100] rev 12495
Android: minor preparation for bug 4142 (concurrency issues)

Thu, 03 Jan 2019 13:14:16 +0100Android: preparation bug 4142, reduce usage of global variable Android_Window
Sylvain Becker <sylvain.becker@gmail.com> [Thu, 03 Jan 2019 13:14:16 +0100] rev 12494
Android: preparation bug 4142, reduce usage of global variable Android_Window

Wed, 02 Jan 2019 18:06:33 +0100Fixed bug 3250 - Wrong backbuffer pixel format on Android, keep getting RGB_565
Sylvain Becker <sylvain.becker@gmail.com> [Wed, 02 Jan 2019 18:06:33 +0100] rev 12493
Fixed bug 3250 - Wrong backbuffer pixel format on Android, keep getting RGB_565

Use the egl format to reconfigure java SurfaceView holder format.
If there is a change, it triggers a surfaceDestroyed/Created/Change sequence.