From cf344445053033297535723e5203758d5f8d1f2d Mon Sep 17 00:00:00 2001 From: Themaister Date: Sun, 11 Sep 2011 15:33:28 +0200 Subject: [PATCH] Disable resizing on OSX. --- gfx/gl.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/gfx/gl.c b/gfx/gl.c index 699f58daa6..1214810565 100644 --- a/gfx/gl.c +++ b/gfx/gl.c @@ -805,7 +805,14 @@ static bool gl_frame(void *data, const void* frame, unsigned width, unsigned hei if (gl->should_resize) { gl->should_resize = false; - SDL_SetVideoMode(gl->win_width, gl->win_height, 0, SDL_OPENGL | (g_settings.video.fullscreen ? SDL_FULLSCREEN : SDL_RESIZABLE)); + + // Resizing is broken on OSX, yay. :) +#ifndef __APPLE__ + const int resizable_ = SDL_RESIZABLE; +#else + const int resizable_ = 0; +#endif + SDL_SetVideoMode(gl->win_width, gl->win_height, 0, SDL_OPENGL | (g_settings.video.fullscreen ? SDL_FULLSCREEN : resizable_)); #ifdef HAVE_FBO if (!gl->render_to_tex)