Back with clickable button.

This commit is contained in:
James Grogan 2022-11-16 17:00:55 +00:00
parent 3e53bd9e00
commit 70891ce7b4
20 changed files with 107 additions and 50 deletions

View file

@ -120,9 +120,10 @@ void Window::doPaint(mt::Screen* screen)
{
mPlatformWindow->beforePaint(screen);
if (mScene && mScene->getRootNode()->getNumChildren() == 0)
auto scene = getScene();
if (scene->getRootNode()->getNumChildren() == 0)
{
mScene->getRootNode()->addChild(mWidget->getRootNode());
scene->getRootNode()->addChild(mWidget->getRootNode());
}
mDrawingContext->paint();
@ -139,4 +140,9 @@ void Window::clear()
}
}
bool Window::isDirty() const
{
return mWidget->needsUpdate();
}
}