Fix old windows code to use new window type

#2800
This commit is contained in:
Wojtek Figat
2026-02-11 23:29:13 +01:00
parent a3492e59ef
commit d4a7b3074e
3 changed files with 11 additions and 11 deletions

View File

@@ -696,7 +696,7 @@ MacWindow::MacWindow(const CreateWindowSettings& settings)
Float2 pos = AppleUtils::PosToCoca(settings.Position);
NSRect frame = NSMakeRect(pos.X, pos.Y - settings.Size.Y, settings.Size.X, settings.Size.Y);
NSUInteger styleMask = NSWindowStyleMaskClosable;
if (settings.IsRegularWindow)
if (settings.Type == WindowType::Regular)
{
styleMask |= NSWindowStyleMaskTitled;
if (settings.AllowMinimize)