src/video/SDL_video.c
changeset 12017 d8a165136edf
parent 12006 1b7ed3438a7f
child 12070 1d65571b57dd
     1.1 --- a/src/video/SDL_video.c	Tue Jun 12 14:00:15 2018 +0300
     1.2 +++ b/src/video/SDL_video.c	Tue Jun 12 13:22:58 2018 -0700
     1.3 @@ -1289,8 +1289,15 @@
     1.4  
     1.5                  /* Generate a mode change event here */
     1.6                  if (resized) {
     1.7 +#ifndef ANDROID
     1.8 +                    // Android may not resize the window to exactly what our fullscreen mode is, especially on
     1.9 +                    // windowed Android environments like the Chromebook or Samsung DeX.  Given this, we shouldn't
    1.10 +                    // use fullscreen_mode.w and fullscreen_mode.h, but rather get our current native size.  As such,
    1.11 +                    // Android's SetWindowFullscreen will generate the window event for us with the proper final size.
    1.12 +
    1.13                      SDL_SendWindowEvent(other, SDL_WINDOWEVENT_RESIZED,
    1.14                                          fullscreen_mode.w, fullscreen_mode.h);
    1.15 +#endif
    1.16                  } else {
    1.17                      SDL_OnWindowResized(other);
    1.18                  }