Skip to content

Commit

Permalink
Remove obsolete macOS window min size workaround.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
slime73 committed Jan 16, 2022
1 parent 65667c0 commit 878ad78
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/modules/window/sdl/Window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -723,11 +723,6 @@ bool Window::setFullscreen(bool fullscreen, Window::FullscreenType fstype)
{
SDL_GL_MakeCurrent(window, context);
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;
}

Expand Down

0 comments on commit 878ad78

Please sign in to comment.