aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTravis Howell2007-06-19 11:12:56 +0000
committerTravis Howell2007-06-19 11:12:56 +0000
commitfc19079902896d03a557a98501bcae9677f97382 (patch)
tree29ace3d82cda37a7c67b52470300aaaf1034950d
parente6543817177c3e565c86eda99a7492c9f7cdf0c5 (diff)
downloadscummvm-rg350-fc19079902896d03a557a98501bcae9677f97382.tar.gz
scummvm-rg350-fc19079902896d03a557a98501bcae9677f97382.tar.bz2
scummvm-rg350-fc19079902896d03a557a98501bcae9677f97382.zip
Fix masking regressions, caused by dirtyClips code.
svn-id: r27544
-rw-r--r--engines/agos/draw.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/engines/agos/draw.cpp b/engines/agos/draw.cpp
index 9be0691853..876f523121 100644
--- a/engines/agos/draw.cpp
+++ b/engines/agos/draw.cpp
@@ -323,7 +323,8 @@ restart:
h = 1;
if (vsp->image != 0) {
- const byte *ptr = _curVgaFile2 + vsp->image * 8;
+ VgaPointersEntry *vpe = &_vgaBufferPointers[vsp->zoneNum];
+ const byte *ptr = vpe->vgaFile2 + vsp->image * 8;
w = READ_BE_UINT16(ptr + 6) / 8;
h = ptr[5];
}
@@ -362,7 +363,8 @@ void AGOSEngine::dirtyClipCheck(int16 x, int16 y, int16 w, int16 h) {
if (vsp->image == 0)
continue;
- const byte *ptr = _curVgaFile2 + vsp->image * 8;
+ VgaPointersEntry *vpe = &_vgaBufferPointers[vsp->zoneNum];
+ const byte *ptr = vpe->vgaFile2 + vsp->image * 8;
width = READ_BE_UINT16(ptr + 6) / 8;
height = ptr[5];