mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-12 12:09:15 +00:00
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:
parent
f2fa6a934d
commit
f758b8422c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user