aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTorbjörn Andersson2012-10-02 22:12:56 +0200
committerTorbjörn Andersson2012-10-02 22:12:56 +0200
commitf758b8422c821b54c5825fa92d25cf3d1c410e3a (patch)
tree2cf4ed1f0e47b4c456c3edee86ddfc9922ba1abc
parentf2fa6a934d838b4edb5386598d1415782e965d26 (diff)
downloadscummvm-rg350-f758b8422c821b54c5825fa92d25cf3d1c410e3a.tar.gz
scummvm-rg350-f758b8422c821b54c5825fa92d25cf3d1c410e3a.tar.bz2
scummvm-rg350-f758b8422c821b54c5825fa92d25cf3d1c410e3a.zip
TOLTECS: Draw shaded rects to "front screen", not "background"
The shadeRect() function is called just once (at the time of writing) and immediately afterwards the "front screen" is copied to the "background". Therefore, drawing to the background doesn't seem to make any sense. The colors are wrong, but I assume that's for the same reason that the text colors are wrong as well.
-rw-r--r--engines/toltecs/menu.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/toltecs/menu.cpp b/engines/toltecs/menu.cpp
index c214205624..ac91191613 100644
--- a/engines/toltecs/menu.cpp
+++ b/engines/toltecs/menu.cpp
@@ -413,7 +413,7 @@ void MenuSystem::restoreRect(int x, int y, int w, int h) {
}
void MenuSystem::shadeRect(int x, int y, int w, int h, byte color1, byte color2) {
- byte *src = (byte *)_background->getBasePtr(x, y);
+ byte *src = (byte *)_vm->_screen->_frontScreen + x + y * 640;
for (int xc = 0; xc < w; xc++) {
src[xc] = color2;
src[xc + h * 640] = color1;