SCUMM: Fix Loom (and some other graphics regressions).
These are regressions from c05cb7f3bb
. They were
caused by VirtualScreen::getPixels differing from Surface::getBasePtr and I
accidently used the former in some cases in the conversion.
I also fixed a bug in debugger.cpp which exchanged x and y.
This commit is contained in:
parent
8fc54d6d77
commit
6485b291e9
3 changed files with 7 additions and 6 deletions
|
@ -641,7 +641,7 @@ static void hlineColor(ScummEngine *scumm, int x1, int x2, int y, byte color) {
|
|||
x2 = right - 1;
|
||||
|
||||
|
||||
ptr = (byte *)vs->getBasePtr(y, x1);
|
||||
ptr = (byte *)vs->getBasePtr(x1, y);
|
||||
|
||||
while (x1++ <= x2) {
|
||||
*ptr++ = color;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue