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:
Johannes Schickel 2013-08-04 02:29:13 +02:00
parent 8fc54d6d77
commit 6485b291e9
3 changed files with 7 additions and 6 deletions

View file

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