From 4c40e56060352f02bf96aa51e00efb83e05d94d3 Mon Sep 17 00:00:00 2001 From: Themaister Date: Sun, 11 Sep 2011 08:50:38 -0700 Subject: [PATCH] Properly disable it :D --- gfx/gl.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/gfx/gl.c b/gfx/gl.c index 1214810565..6946c8dc86 100644 --- a/gfx/gl.c +++ b/gfx/gl.c @@ -1083,7 +1083,13 @@ static void* gl_init(const video_info_t *video, const input_driver_t **input, vo SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1); SDL_GL_SetAttribute(SDL_GL_SWAP_CONTROL, video->vsync ? 1 : 0); - if (!SDL_SetVideoMode(video->width, video->height, g_settings.video.force_16bit ? 16 : 0, SDL_OPENGL | SDL_RESIZABLE | (video->fullscreen ? SDL_FULLSCREEN : 0))) + // Resizing is broken on OSX, yay. :) +#ifndef __APPLE__ + const int resizable_ = SDL_RESIZABLE; +#else + const int resizable_ = 0; +#endif + if (!SDL_SetVideoMode(video->width, video->height, g_settings.video.force_16bit ? 16 : 0, SDL_OPENGL | (video->fullscreen ? SDL_FULLSCREEN : resizable_))) return NULL; gfx_window_title_reset();