* Fix CComponents::getScreen()/hide() & CComponentsItem::hideCCItem()

- Use CFrameBuffer::waitForIdle() to ensure that all GXA commands
  are finished before SaveScreen() / RestoreScreen() is executed
This commit is contained in:
Michael Liebmann
2013-05-17 19:42:50 +02:00
parent d460c50bd5
commit 072097cd06
2 changed files with 3 additions and 0 deletions

View File

@@ -112,6 +112,7 @@ void CComponentsItem::hideCCItem(bool no_restore)
is_painted = false;
if (saved_screen.pixbuf) {
frameBuffer->waitForIdle("CComponentsItem::hideCCItem()");
frameBuffer->RestoreScreen(saved_screen.x, saved_screen.y, saved_screen.dx, saved_screen.dy, saved_screen.pixbuf);
if (no_restore) {
delete[] saved_screen.pixbuf;