src/SDL12_compat.c
changeset 109 946944397910
parent 108 d3b0971aa72c
child 110 967a0716df06
     1.1 --- a/src/SDL12_compat.c	Fri Mar 08 21:28:47 2019 -0500
     1.2 +++ b/src/SDL12_compat.c	Fri Mar 08 21:30:07 2019 -0500
     1.3 @@ -2754,10 +2754,10 @@
     1.4          //  software rendering, we're just going to push it off onto the
     1.5          //  GPU, so use FULLSCREEN_DESKTOP and logical scaling there.
     1.6          FIXME("OpenGL will still expect letterboxing and centering if it didn't get an exact resolution match.");
     1.7 -        if (flags12 & SDL12_OPENGL) {
     1.8 +        if (((flags12 & SDL12_OPENGL) == 0) || ((dmode.w == width) && (dmode.h == height))) {
     1.9 +            fullscreen_flags20 |= SDL_WINDOW_FULLSCREEN_DESKTOP;
    1.10 +        } else {
    1.11              fullscreen_flags20 |= SDL_WINDOW_FULLSCREEN;
    1.12 -        } else {
    1.13 -            fullscreen_flags20 |= SDL_WINDOW_FULLSCREEN_DESKTOP;
    1.14          }
    1.15      }
    1.16