[Scummvm-cvs-logs] SF.net SVN: scummvm:[44944] scummvm/trunk/engines/sci/gui
thebluegr at users.sourceforge.net
thebluegr at users.sourceforge.net
Sun Oct 11 22:20:29 CEST 2009
Revision: 44944
http://scummvm.svn.sourceforge.net/scummvm/?rev=44944&view=rev
Author: thebluegr
Date: 2009-10-11 20:20:28 +0000 (Sun, 11 Oct 2009)
Log Message:
-----------
Use BitsShow() for partial screen updates
Modified Paths:
--------------
scummvm/trunk/engines/sci/gui/gui.cpp
scummvm/trunk/engines/sci/gui/gui_gfx.cpp
Modified: scummvm/trunk/engines/sci/gui/gui.cpp
===================================================================
--- scummvm/trunk/engines/sci/gui/gui.cpp 2009-10-11 20:09:35 UTC (rev 44943)
+++ scummvm/trunk/engines/sci/gui/gui.cpp 2009-10-11 20:20:28 UTC (rev 44944)
@@ -283,9 +283,7 @@
_gfx->Draw_String(text);
_gfx->SetPort(oldPort);
// _gfx->ShowBits(*_theMenuBar, 1);
- Common::Rect screenRect = _gfx->_menuRect;
- _gfx->OffsetRect(screenRect);
- _screen->copyRectToScreen(screenRect);
+ _gfx->BitsShow(_gfx->_menuRect, SCI_SCREEN_MASK_VISUAL);
}
void SciGui::drawMenuBar() {
@@ -337,8 +335,7 @@
Common::Rect screenRect = rect;
screenRect.grow(2);
- _gfx->OffsetRect(screenRect);
- _screen->copyRectToScreen(screenRect);
+ _gfx->BitsShow(screenRect, SCI_SCREEN_MASK_VISUAL);
}
void SciGui::drawControlText(Common::Rect rect, reg_t obj, const char *text, int16 fontId, int16 mode, int16 style, bool hilite) {
@@ -356,8 +353,7 @@
Common::Rect screenRect = rect;
screenRect.grow(1);
- _gfx->OffsetRect(screenRect);
- _screen->copyRectToScreen(screenRect);
+ _gfx->BitsShow(_screenRect, SCI_SCREEN_MASK_VISUAL);
}
void SciGui::drawControlTextEdit(Common::Rect rect, reg_t obj, const char *text, int16 fontId, int16 mode, int16 style, int16 cursorPos, int16 maxChars, bool hilite) {
@@ -373,9 +369,7 @@
_gfx->InvertRect(rect);
}
- Common::Rect screenRect = rect;
- _gfx->OffsetRect(screenRect);
- _screen->copyRectToScreen(screenRect);
+ _gfx->BitsShow(rect, SCI_SCREEN_MASK_VISUAL);
}
void SciGui::drawControlList(Common::Rect rect, reg_t obj, int16 maxChars, int16 count, const char **entries, GuiResourceId fontId, int16 style, int16 upperPos, int16 cursorPos, bool isAlias, bool hilite) {
@@ -385,9 +379,7 @@
if (isAlias && (style & 8)) {
_gfx->FrameRect(rect);
}
- Common::Rect screenRect = rect;
- _gfx->OffsetRect(screenRect);
- _screen->copyRectToScreen(screenRect);
+ _gfx->BitsShow(rect, SCI_SCREEN_MASK_VISUAL);
}
}
Modified: scummvm/trunk/engines/sci/gui/gui_gfx.cpp
===================================================================
--- scummvm/trunk/engines/sci/gui/gui_gfx.cpp 2009-10-11 20:09:35 UTC (rev 44943)
+++ scummvm/trunk/engines/sci/gui/gui_gfx.cpp 2009-10-11 20:20:28 UTC (rev 44944)
@@ -531,7 +531,7 @@
rect.left = _curPort->curLeft;
DrawText(text, from, len, orgFontId, orgPenColor);
rect.right = _curPort->curLeft;
- BitsShow(rect, 1);
+ BitsShow(rect, SCI_SCREEN_MASK_VISUAL);
}
// Draws a text in rect.
@@ -587,9 +587,7 @@
OffsetRect(rect);
assert((screenMask & 0x8000) == 0);
- _screen->copyToScreen();
-// _system->copyRectToScreen(GetSegment(flags) + _baseTable[rect.top] + rect.left, 320, rect.left, rect.top, rect.width(), rect.height());
-// _system->updateScreen();
+ _screen->copyRectToScreen(rect);
}
GuiMemoryHandle SciGuiGfx::BitsSave(const Common::Rect &rect, byte screenMask) {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list