mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-12-14 12:09:36 +00:00
Level editor work
This commit is contained in:
@@ -328,11 +328,6 @@ namespace PortabilityLayer
|
||||
|
||||
if (isVisible)
|
||||
widget->DrawControl(surface);
|
||||
else
|
||||
{
|
||||
surface->SetForeColor(StdColors::Red());
|
||||
surface->FrameRect(surface->m_port.GetRect());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -621,7 +616,11 @@ namespace PortabilityLayer
|
||||
|
||||
WindowManager *wm = PortabilityLayer::WindowManager::GetInstance();
|
||||
|
||||
WindowDef wdef = WindowDef::Create(rect, WindowStyleFlags::kAlert, visible, hasCloseBox, referenceConstant, positionSpec, title);
|
||||
uint16_t styleFlags = WindowStyleFlags::kAlert;
|
||||
if (hasCloseBox)
|
||||
styleFlags |= PortabilityLayer::WindowStyleFlags::kCloseBox;
|
||||
|
||||
WindowDef wdef = WindowDef::Create(rect, styleFlags, visible, referenceConstant, positionSpec, title);
|
||||
Window *window = wm->CreateWindow(wdef);
|
||||
if (!window)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user