Back with clickable button.
This commit is contained in:
parent
3e53bd9e00
commit
70891ce7b4
20 changed files with 107 additions and 50 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue