X-Git-Url: https://deadsoftware.ru/gitweb?a=blobdiff_plain;f=src%2Fsdl%2Fmain.c;h=0b1aada10b2c8886093651c5401a8fbab2eca3e9;hb=e4b2e65833f9ba8436226956c391e3d6d2ff2951;hp=07dccf98f5fee9198b1f4f748165619438e402b3;hpb=9b7dd9e2d0728c50f830fff8f5f7c7caa87e5b6f;p=flatwaifu.git diff --git a/src/sdl/main.c b/src/sdl/main.c index 07dccf9..0b1aada 100644 --- a/src/sdl/main.c +++ b/src/sdl/main.c @@ -20,7 +20,7 @@ 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include +#include "SDL.h" #include #include #include // srand exit @@ -137,9 +137,12 @@ void Y_unset_videomode (void) { void Y_set_fullscreen (int yes) { assert(surf != NULL); - Uint32 flags = surf->flags & ~SDL_FULLSCREEN; + int flags = 0; if ((surf->flags & SDL_FULLSCREEN) == 0) { - flags |= SDL_FULLSCREEN; + flags |= SYSTEM_USE_FULLSCREEN; + } + if (surf->flags & SDL_OPENGL) { + flags |= SDL_OPENGL; } Y_set_videomode(surf->w, surf->h, flags); }