From 3a4c063b101498377049e9f354307c12e7ea3257 Mon Sep 17 00:00:00 2001 From: Vinyl Darkscratch Date: Tue, 13 Mar 2018 14:51:14 -0700 Subject: [PATCH] Disable window resizing on non-macOS platforms --- src/main.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index ee52d25..1d13b1d 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -275,7 +275,11 @@ int main(int argc, char *argv[]) } SDL_Window *win; - Uint32 winFlags = SDL_WINDOW_OPENGL | SDL_WINDOW_INPUT_FOCUS | SDL_WINDOW_RESIZABLE; //| SDL_WINDOW_ALLOW_HIGHDPI; + Uint32 winFlags = SDL_WINDOW_OPENGL | SDL_WINDOW_INPUT_FOCUS; //| SDL_WINDOW_ALLOW_HIGHDPI; + + #ifdef __APPLE__ + winFlags |= SDL_WINDOW_RESIZABLE; + #endif if (conf.fullscreen) winFlags |= SDL_WINDOW_FULLSCREEN_DESKTOP;