summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-09-27 12:05:41 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-09-27 12:05:41 +0300
commitefb9ca399a71d89e4c931df8e3310af7ecf0d53c (patch)
treef18132feeec54c0b7b70cb292c5d7e70f508ac2a /src
parentddf4d6af51af79746875b4cf0e21d2daacb7d5dc (diff)
macOS: Maximized window is not a special case
Diffstat (limited to 'src')
-rw-r--r--src/ui/window.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/window.c b/src/ui/window.c
index 85666233..54422ef2 100644
--- a/src/ui/window.c
+++ b/src/ui/window.c
@@ -780,8 +780,8 @@ static void savePlace_MainWindow_(iAny *mainWindow) {
780 iInt2 border = zero_I2(); 780 iInt2 border = zero_I2();
781#if !defined(iPlatformApple) 781#if !defined(iPlatformApple)
782 SDL_GetWindowBordersSize(d->base.win, &border.y, &border.x, NULL, NULL); 782 SDL_GetWindowBordersSize(d->base.win, &border.y, &border.x, NULL, NULL);
783#endif
784 iAssert(~SDL_GetWindowFlags(d->base.win) & SDL_WINDOW_MAXIMIZED); 783 iAssert(~SDL_GetWindowFlags(d->base.win) & SDL_WINDOW_MAXIMIZED);
784#endif
785 d->place.normalRect.pos = 785 d->place.normalRect.pos =
786 max_I2(zero_I2(), sub_I2(d->place.normalRect.pos, border)); 786 max_I2(zero_I2(), sub_I2(d->place.normalRect.pos, border));
787 } 787 }