SCI/newgui: fixes for statusbar and transitions, so menubar shows up in intro of qfg1ega

svn-id: r45635
This commit is contained in:
Martin Kiewitz 2009-11-03 19:43:21 +00:00
parent d758538eaa
commit 7bed008f8e
2 changed files with 8 additions and 3 deletions

View File

@ -300,7 +300,8 @@ void SciGui::drawStatus(const char *text, int16 colorPen, int16 colorBack) {
_gfx->PenColor(colorPen);
_gfx->MoveTo(0, 1);
_text->Draw_String(text);
_gfx->BitsShow(_gfx->_menuRect);
if (_screen->_picNotValid == 0)
_gfx->BitsShow(_gfx->_menuRect);
_gfx->SetPort(oldPort);
}

View File

@ -309,7 +309,9 @@ void SciGuiTransitions::pixelation (bool blackoutFlag) {
continue;
pixelRect.left = mask % 320; pixelRect.right = pixelRect.left + 1;
pixelRect.top = mask / 320; pixelRect.bottom = pixelRect.top + 1;
copyRectToScreen(pixelRect, blackoutFlag);
pixelRect.clip(_picRect);
if (!pixelRect.isEmpty())
copyRectToScreen(pixelRect, blackoutFlag);
if ((stepNr & 0x3FF) == 0) {
updateScreenAndWait(5);
}
@ -329,7 +331,9 @@ void SciGuiTransitions::blocks(bool blackoutFlag) {
continue;
blockRect.left = (mask % 40) << 3; blockRect.right = blockRect.left + 8;
blockRect.top = (mask / 40) << 3; blockRect.bottom = blockRect.top + 8;
copyRectToScreen(blockRect, blackoutFlag);
blockRect.clip(_picRect);
if (!blockRect.isEmpty())
copyRectToScreen(blockRect, blackoutFlag);
if ((stepNr & 7) == 0) {
updateScreenAndWait(4);
}