fixed window style generation ignoring minimize precedence, causing errors in edge cases

This commit is contained in:
unknown 2026-01-30 19:47:04 +01:00
parent 9a513a6151
commit 59ea022c67

View File

@ -270,8 +270,8 @@ static DWORD MakeWindowStyle(unsigned flags)
// Minimized takes precedence over maximized
int mized = MIZED_NONE;
if (FLAG_IS_SET(flags, FLAG_WINDOW_MINIMIZED)) mized = MIZED_MIN;
if (flags & FLAG_WINDOW_MAXIMIZED) mized = MIZED_MAX;
if (flags & FLAG_WINDOW_MINIMIZED) mized = MIZED_MIN;
else if (flags & FLAG_WINDOW_MAXIMIZED) mized = MIZED_MAX;
switch (mized)
{