Sam Lantinga
e07d7e649c
Christoph Mallon: Replace strlen(x) == 0 (O(n)) by x[0] == '\0' (O(1)).
2013-08-29 08:30:21 -07:00
Sam Lantinga
f79fc33a39
Christoph Mallon: Remove pointless if (x) before SDL_free(x)
2013-08-29 08:29:21 -07:00
Sam Lantinga
3d217ed7b5
Fixed crash if the IC isn't set up for some reason (bad X11 locale?)
2013-08-21 10:07:48 -07:00
Gabriel Jacobo
6107705a40
Fix a couple of warnings
2013-08-21 10:34:32 -03:00
Gabriel Jacobo
2490166d2d
Fixes for -Wdeclaration-after-statement
2013-08-21 10:12:16 -03:00
Gabriel Jacobo
1e49b1ed6e
OCD fixes: Adds a space after /* (glory to regular expressions!)
2013-08-21 09:47:10 -03:00
Gabriel Jacobo
695344d163
OCD fixes: Adds a space before */
2013-08-21 09:43:09 -03:00
Ryan C. Gordon
24006be288
Fixed compiler warning.
2013-08-20 20:31:57 -04:00
Gabriel Jacobo
0eeb76d869
Fixes bug #2037 , common EGL code for Android and X11
2013-08-19 16:29:46 -03:00
Sam Lantinga
67367be019
Don't print "unrecognized key" message for an X11 keycode of 0. This can happen with composed characters.
2013-08-12 22:00:21 -07:00
Gabriel Jacobo
dad420670f
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.
2013-08-12 11:13:50 -03:00