Fix up some level editor dialog behavior

This commit is contained in:
elasota
2020-02-26 12:17:04 -05:00
parent d617795591
commit cc17911776
23 changed files with 224 additions and 201 deletions

View File

@@ -108,9 +108,14 @@ void OpenMessageWindow (const PLPasStr &title)
SetRect(&mssgWindowRect, 0, 0, 256, kMessageWindowTall);
const PortabilityLayer::WindowDef wdef = PortabilityLayer::WindowDef::Create(mssgWindowRect, windowStyle, false, 0, 0, title);
Rect placementRect = mssgWindowRect;
CenterRectInRect(&placementRect, &thisMac.screen);
mssgWindow = PortabilityLayer::WindowManager::GetInstance()->CreateWindow(wdef);
const PortabilityLayer::WindowDef wdef = PortabilityLayer::WindowDef::Create(placementRect, windowStyle, false, 0, 0, title);
PortabilityLayer::WindowManager *wm = PortabilityLayer::WindowManager::GetInstance();
mssgWindow = wm->CreateWindow(wdef);
wm->PutWindowBehind(mssgWindow, wm->GetPutInFrontSentinel());
if (mssgWindow != nil)
{