From f758b8422c821b54c5825fa92d25cf3d1c410e3a Mon Sep 17 00:00:00 2001 From: Torbjörn Andersson Date: Tue, 2 Oct 2012 22:12:56 +0200 Subject: 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. --- engines/toltecs/menu.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3