summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 35a8dd0)
raw | patch | inline | side by side (parent: 35a8dd0)
author | DeaDDooMER <deaddoomer@deadsoftware.ru> | |
Wed, 1 Apr 2020 11:26:44 +0000 (15:26 +0400) | ||
committer | DeaDDooMER <deaddoomer@deadsoftware.ru> | |
Wed, 1 Apr 2020 11:26:44 +0000 (15:26 +0400) |
src/sdl/main.c | patch | blob | history |
diff --git a/src/sdl/main.c b/src/sdl/main.c
index 07dccf98f5fee9198b1f4f748165619438e402b3..df880c432e3a2b9cf8e447faf0adfd02e6872082 100644 (file)
--- a/src/sdl/main.c
+++ b/src/sdl/main.c
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);
}