Browse Source

Remove obsolete macOS window min size workaround.

Fixes #1444.

The reason for the SetWindowMinSize call after exiting fullscreen doesn't seem to be needed anymore, and it was breaking setFullscreen(false) in Linux.
Alex Szpakowski 3 years ago
parent
commit
878ad785bc
1 changed files with 0 additions and 5 deletions
  1. 0 5
      src/modules/window/sdl/Window.cpp

+ 0 - 5
src/modules/window/sdl/Window.cpp

@@ -723,11 +723,6 @@ bool Window::setFullscreen(bool fullscreen, Window::FullscreenType fstype)
 	{
 	{
 		SDL_GL_MakeCurrent(window, context);
 		SDL_GL_MakeCurrent(window, context);
 		updateSettings(newsettings, true);
 		updateSettings(newsettings, true);
-
-		// Apparently this gets un-set when we exit fullscreen (at least in OS X).
-		if (!fullscreen)
-			SDL_SetWindowMinimumSize(window, settings.minwidth, settings.minheight);
-
 		return true;
 		return true;
 	}
 	}