Fixes #2022, do not resume on Android when surfaceChanged

If the app is in landscape mode and the user presses the power button, a pause
is followed immediately by a surfaceChanged event because the lock screen
is shown in portrait mode. This triggers a "false" resume.
So, we just pause and resume following the onWindowFocusChanged events.

Also, wait for SDL_APP_WILLENTERBACKGROUND and SDL_APP_DIDENTERBACKGROUND before
blocking the event pump.
This commit is contained in:
Gabriel Jacobo 2013-08-12 11:13:50 -03:00
commit dad420670f
859 changed files with 310893 additions and 0 deletions

BIN
test/shapes/p01_shape24.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 MiB

BIN
test/shapes/p01_shape8.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 401 KiB

BIN
test/shapes/p02_shape24.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 MiB

BIN
test/shapes/p02_shape8.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 401 KiB

BIN
test/shapes/p03_shape24.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 MiB

BIN
test/shapes/p03_shape8.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 401 KiB

BIN
test/shapes/p04_shape1.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

BIN
test/shapes/p04_shape24.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 MiB

BIN
test/shapes/p04_shape8.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 401 KiB

BIN
test/shapes/p05_shape8.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 401 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 MiB

BIN
test/shapes/p06_shape24.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 MiB

BIN
test/shapes/p06_shape8.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 401 KiB

BIN
test/shapes/p07_shape24.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 MiB

BIN
test/shapes/p07_shape8.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 401 KiB

BIN
test/shapes/p08_shape24.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 MiB

BIN
test/shapes/p08_shape8.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 401 KiB

BIN
test/shapes/p09_shape24.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 MiB

BIN
test/shapes/p09_shape8.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 401 KiB

BIN
test/shapes/p10_shape1.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

BIN
test/shapes/p10_shape24.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 MiB

BIN
test/shapes/p10_shape8.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 401 KiB

BIN
test/shapes/p11_shape24.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 MiB

BIN
test/shapes/p11_shape8.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 401 KiB

BIN
test/shapes/p12_shape24.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 MiB

BIN
test/shapes/p12_shape8.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 401 KiB

BIN
test/shapes/p13_shape24.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 MiB

BIN
test/shapes/p13_shape8.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 401 KiB

BIN
test/shapes/p14_shape24.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 MiB

BIN
test/shapes/p14_shape8.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 401 KiB

BIN
test/shapes/p15_shape24.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 MiB

BIN
test/shapes/p15_shape8.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 401 KiB

BIN
test/shapes/p16_shape1.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

BIN
test/shapes/p16_shape24.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 MiB

BIN
test/shapes/p16_shape8.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 401 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 192 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 256 KiB