src/video/android/SDL_androidwindow.c
changeset 12255 d2e5d4520677
parent 12017 d8a165136edf
child 12305 85c6aa0836d8
equal deleted inserted replaced
12254:f1ac9de30ee1 12255:d2e5d4520677
    25 #include "SDL_syswm.h"
    25 #include "SDL_syswm.h"
    26 #include "../SDL_sysvideo.h"
    26 #include "../SDL_sysvideo.h"
    27 #include "../../events/SDL_keyboard_c.h"
    27 #include "../../events/SDL_keyboard_c.h"
    28 #include "../../events/SDL_mouse_c.h"
    28 #include "../../events/SDL_mouse_c.h"
    29 #include "../../events/SDL_windowevents_c.h"
    29 #include "../../events/SDL_windowevents_c.h"
       
    30 #include "../../core/android/SDL_android.h"
    30 
    31 
    31 #include "SDL_androidvideo.h"
    32 #include "SDL_androidvideo.h"
    32 #include "SDL_androidwindow.h"
    33 #include "SDL_androidwindow.h"
    33 #include "SDL_hints.h"
    34 #include "SDL_hints.h"
    34 
    35 
   107     //
   108     //
   108     // It is possible that we've set width and height to the full-size display, but on
   109     // It is possible that we've set width and height to the full-size display, but on
   109     // Samsung DeX or Chromebooks or other windowed Android environemtns, our window may 
   110     // Samsung DeX or Chromebooks or other windowed Android environemtns, our window may 
   110     // still not be the full display size.
   111     // still not be the full display size.
   111     //
   112     //
       
   113     if (!SDL_IsDeXMode() && !SDL_IsChromebook()) {
       
   114         return;
       
   115     }
       
   116 
   112     SDL_WindowData * data = (SDL_WindowData *)window->driverdata;
   117     SDL_WindowData * data = (SDL_WindowData *)window->driverdata;
   113 
   118 
   114     if (!data || !data->native_window) {
   119     if (!data || !data->native_window) {
   115         return;
   120         return;
   116     }
   121     }