SDL: support for window resizing without restarting

This commit is contained in:
Sergii Pylypenko
2015-01-16 21:12:45 +02:00
parent f5e9ca27e6
commit 6353a5094c
11 changed files with 103 additions and 107 deletions

View File

@@ -230,7 +230,7 @@ CustomBuildScript=n
AppCflags='-O2 -finline-functions'
# Additional LDFLAGS for application
AppLdflags=''
AppLdflags='-fuse-ld=bfd' # Hack, because NDK seems to be bugged
# If application has headers with the same name as system headers, this option tries to fix compiler flags to make it compilable
AppOverlapsSystemHeaders=

View File

@@ -688,7 +688,10 @@ int main(int argc, char* argv[])
if(evt.key.keysym.sym == SDLK_1)
SDL_ANDROID_SetScreenKeyboardButtonShown(SDL_ANDROID_SCREENKEYBOARD_BUTTON_2, 0);
if(evt.key.keysym.sym == SDLK_2)
{
SDL_ANDROID_SetScreenKeyboardButtonShown(SDL_ANDROID_SCREENKEYBOARD_BUTTON_DPAD, 1);
screen = SDL_SetVideoMode(SCREEN_W, SDL_GetVideoSurface()->h + 1, bpp, flags);
}
if(evt.key.keysym.sym == SDLK_3)
SDL_ANDROID_SetScreenKeyboardButtonShown(SDL_ANDROID_SCREENKEYBOARD_BUTTON_DPAD, 0);
if(evt.key.keysym.sym == SDLK_4)