From 932fca795998ac60e079b96650664331729e6ba9 Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Wed, 7 Apr 2021 11:32:55 +0300 Subject: Windows: Don't set a maximum size for the window The maximum size was introduced to avoid the window being too large at launch, but this doesn't work if the window is moved to different monitor. IssueID #199 --- src/ui/window.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/ui/window.c') diff --git a/src/ui/window.c b/src/ui/window.c index c07feaf9..14eb6ac1 100644 --- a/src/ui/window.c +++ b/src/ui/window.c @@ -1465,9 +1465,6 @@ void init_Window(iWindow *d, iRect rect) { d->uiScale = initialUiScale_; setScale_Metrics(d->pixelRatio * d->displayScale * d->uiScale); #if defined (iPlatformMsys) - SDL_Rect usable; - SDL_GetDisplayUsableBounds(0, &usable); - SDL_SetWindowMaximumSize(d->win, usable.w, usable.h); SDL_SetWindowMinimumSize(d->win, minSize.x * d->displayScale, minSize.y * d->displayScale); useExecutableIconResource_SDLWindow(d->win); #endif -- cgit v1.2.3