diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-04-07 11:32:55 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-04-07 11:32:55 +0300 |
commit | 932fca795998ac60e079b96650664331729e6ba9 (patch) | |
tree | 2f40ef6fd1519247f35a5eaa795aca85ddf9e168 | |
parent | e3b11bfefd9c506873840b63fc8cb44ce5a4357e (diff) |
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
-rw-r--r-- | src/ui/window.c | 3 |
1 files changed, 0 insertions, 3 deletions
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) { | |||
1465 | d->uiScale = initialUiScale_; | 1465 | d->uiScale = initialUiScale_; |
1466 | setScale_Metrics(d->pixelRatio * d->displayScale * d->uiScale); | 1466 | setScale_Metrics(d->pixelRatio * d->displayScale * d->uiScale); |
1467 | #if defined (iPlatformMsys) | 1467 | #if defined (iPlatformMsys) |
1468 | SDL_Rect usable; | ||
1469 | SDL_GetDisplayUsableBounds(0, &usable); | ||
1470 | SDL_SetWindowMaximumSize(d->win, usable.w, usable.h); | ||
1471 | SDL_SetWindowMinimumSize(d->win, minSize.x * d->displayScale, minSize.y * d->displayScale); | 1468 | SDL_SetWindowMinimumSize(d->win, minSize.x * d->displayScale, minSize.y * d->displayScale); |
1472 | useExecutableIconResource_SDLWindow(d->win); | 1469 | useExecutableIconResource_SDLWindow(d->win); |
1473 | #endif | 1470 | #endif |