SDL/src/video
Sam Lantinga f674f2311a Fixed bug 2808 - Fix SDL reporting wrong window size on resume
Jonas Kulla

At startup time, the single android window is assigned a "windowed" (window->windowed.{w,h}) size based on the current orientation of the mobile device; this size is never updated throughout the lifetime of the app.

This becomes problematic when the app is paused and then resumed in an orientation that it did not start up in. Eventually, 'SDL_OnWindowRestored()' is called, which calls 'SDL_UpdateFullscreenMode()'. This function is very problematic because it is written with a desktop monitor in mind: it tries to find a matching display mode for the windowed size, doesn't find any, and finally applies the windowed size as the fullscreen one. In the end, the windowed size is reported in a RESIZED event, which doesn't correspond to the actual surface size.

To see this in action: Start an orientation aware SDL app in eg. portrait mode, suspend the app, put the device into landscape orientation and resume the app. It will erroneously render in portrait mode (until the device is rotated again).
2016-10-07 15:21:19 -07:00
..
android Fixed bug 2808 - Fix SDL reporting wrong window size on resume 2016-10-07 15:21:19 -07:00
cocoa Fixed bug 2157 - Caps Lock key produces key down & key up events while key is still pressed. 2016-10-04 02:11:52 -07:00
directfb Added SDL_SetWindowOpacity() and SDL_GetWindowOpacity(). 2016-01-05 02:46:10 -05:00
dummy Updated copyright to 2016 2016-01-02 10:10:34 -08:00
emscripten Only prevent the default browser event handling when the specific event types aren't disabled by the user, patch contributed by Jonas Platte 2016-09-13 00:09:21 -07:00
haiku haiku: Patched to compile. 2016-09-29 23:15:56 -04:00
mir Added SDL_SetWindowResizable(). (thanks, Ethan!) 2016-09-29 22:52:41 -04:00
nacl Updated copyright to 2016 2016-01-02 10:10:34 -08:00
pandora Pandora: Fixed memory leak in video implementation. 2016-07-20 21:00:52 +02:00
psp PSP: Fixed memory leak if video init failed. 2016-08-03 22:32:20 +02:00
raspberry Fixed 3149 - Mouse Pointer Raspberry Pi corrupt when moving over screen edges 2016-10-01 13:59:59 -07:00
uikit Fixed bug 3305 - Fixed TextInput status when the keyboard was dismissed with the dismiss key on the iPad 2016-10-01 12:46:36 -07:00
vivante Updated comments in video implementations. 2016-07-18 22:03:47 +02:00
wayland wayland: Add support for relative mouse mode, by Jonas ?dahl <jadahl@gmail.com> 2016-09-01 01:26:56 -07:00
windows Fix tabs -> spaces 2016-10-01 19:16:46 -03:00
winrt WinRT: added an extra NULL pointer check for SDL_*ScreenSaver() backend code 2016-08-31 12:52:55 -04:00
x11 Fixed build for X11 2016-10-01 14:54:05 -07:00
SDL_blit.c Updated copyright to 2016 2016-01-02 10:10:34 -08:00
SDL_blit.h Updated copyright to 2016 2016-01-02 10:10:34 -08:00
SDL_blit_0.c Updated copyright to 2016 2016-01-02 10:10:34 -08:00
SDL_blit_1.c Updated copyright to 2016 2016-01-02 10:10:34 -08:00
SDL_blit_A.c Updated copyright to 2016 2016-01-02 10:10:34 -08:00
SDL_blit_auto.c Updated copyright to 2016 2016-01-02 10:10:34 -08:00
SDL_blit_auto.h Updated copyright to 2016 2016-01-02 10:10:34 -08:00
SDL_blit_copy.c Updated copyright to 2016 2016-01-02 10:10:34 -08:00
SDL_blit_copy.h Updated copyright to 2016 2016-01-02 10:10:34 -08:00
SDL_blit_N.c Updated copyright to 2016 2016-01-02 10:10:34 -08:00
SDL_blit_slow.c Fixed bug 3159 - SDL_blit_slow with BLENDING does not work 2016-10-01 13:40:01 -07:00
SDL_blit_slow.h Updated copyright to 2016 2016-01-02 10:10:34 -08:00
SDL_bmp.c Fixed bug 3352 - Adding alpha mask support to SDL_SaveBMP_RW 2016-10-01 11:29:13 -07:00
SDL_clipboard.c Updated copyright to 2016 2016-01-02 10:10:34 -08:00
SDL_egl.c Fixed compiler warning - this should have been a const char pointer 2016-10-04 03:38:39 -07:00
SDL_egl_c.h Updated copyright to 2016 2016-01-02 10:10:34 -08:00
SDL_fillrect.c Updated copyright to 2016 2016-01-02 10:10:34 -08:00
SDL_pixels.c Updated copyright to 2016 2016-01-02 10:10:34 -08:00
SDL_pixels_c.h Updated copyright to 2016 2016-01-02 10:10:34 -08:00
SDL_rect.c Updated copyright to 2016 2016-01-02 10:10:34 -08:00
SDL_rect_c.h Updated copyright to 2016 2016-01-02 10:10:34 -08:00
SDL_RLEaccel.c Fixed sed error on Mac OS X and updated copyright on a few last files 2016-01-02 10:38:51 -08:00
SDL_RLEaccel_c.h Updated copyright to 2016 2016-01-02 10:10:34 -08:00
SDL_shape.c Updated copyright to 2016 2016-01-02 10:10:34 -08:00
SDL_shape_internals.h Updated copyright to 2016 2016-01-02 10:10:34 -08:00
SDL_stretch.c Updated copyright to 2016 2016-01-02 10:10:34 -08:00
SDL_surface.c Updated copyright to 2016 2016-01-02 10:10:34 -08:00
SDL_sysvideo.h Added SDL_SetWindowResizable(). (thanks, Ethan!) 2016-09-29 22:52:41 -04:00
SDL_video.c Added SDL_SetWindowResizable(). (thanks, Ethan!) 2016-09-29 22:52:41 -04:00
sdlgenblit.pl Updated copyright to 2016 2016-01-02 10:10:34 -08:00