Skip to content

Commit

Permalink
Enable resizable window for integer scaling mode
Browse files Browse the repository at this point in the history
  • Loading branch information
SadPencil committed Sep 19, 2024
1 parent a98ed67 commit bffc594
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions DXMainClient/DXGUI/GameClass.cs
Original file line number Diff line number Diff line change
Expand Up @@ -412,6 +412,15 @@ public static void SetGraphicsMode(WindowManager wm)
}

wm.SetBorderlessMode(borderlessWindowedClient);

if (integerScale && !borderlessWindowedClient)
{
#if WINFORMS
wm.SetFormBorderStyle(FormBorderStyle.Sizable);
wm.SetMaximizeBox(true);
#endif
}

#if !XNA

if (borderlessWindowedClient)
Expand Down

0 comments on commit bffc594

Please sign in to comment.