Skip to content

Commit 6bae21a

Browse files
committed
fix FHD maximising on windows accidentally forcing borderless
1 parent 7aae545 commit 6bae21a

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/main.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -515,6 +515,8 @@ int main(void)
515515

516516
if (current_w >= max_w || current_h >= max_h)
517517
{
518+
/* shrink the window a teeny bit before maximizing to make Windows not treat it as a borderless window */
519+
SetWindowSize(max_w - 100, max_h - 100);
518520
SetWindowState(FLAG_WINDOW_MAXIMIZED);
519521
}
520522
else

0 commit comments

Comments
 (0)