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.
This commit is contained in:
Torbjörn Andersson 2012-10-02 22:12:56 +02:00
parent f2fa6a934d
commit f758b8422c

View File

@ -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;