Send SDL_VIDEORESIZE event when app restored from background

This commit is contained in:
pelya
2011-03-09 19:06:04 +02:00
parent 90691c4579
commit 15d39e1af5
6 changed files with 25 additions and 3 deletions

View File

@@ -465,6 +465,14 @@ int main(int argc, char* argv[])
break;
__android_log_print(ANDROID_LOG_INFO, "Ballfield", "SDL key event: state %d key %d mod %d unicode %d", event.key.state, (int)event.key.keysym.sym, (int)event.key.keysym.mod, (int)event.key.keysym.unicode);
}
if(event.type & SDL_VIDEORESIZE)
{
__android_log_print(ANDROID_LOG_INFO, "Ballfield", "SDL resize event: %d x %d", event.resize.w, event.resize.h);
}
if(event.type & SDL_ACTIVEEVENT)
{
__android_log_print(ANDROID_LOG_INFO, "Ballfield", "SDL active event: gain %d", event.active.gain);
}
}
/* Timing */