aboutsummaryrefslogtreecommitdiff
path: root/engines/agos/draw.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/agos/draw.cpp')
-rw-r--r--engines/agos/draw.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/agos/draw.cpp b/engines/agos/draw.cpp
index bb28da73b5..68bb152844 100644
--- a/engines/agos/draw.cpp
+++ b/engines/agos/draw.cpp
@@ -503,8 +503,8 @@ void AGOSEngine::saveBackGround(VgaSprite *vsp) {
if (_window3Flag == 1) {
animTable->srcPtr = (const byte *)_window4BackScn;
} else {
- uint xoffs = (_videoWindows[vsp->windowNum * 4 + 0] * 2 + x) * 8;
- uint yoffs = (_videoWindows[vsp->windowNum * 4 + 1] + y);
+ int xoffs = (_videoWindows[vsp->windowNum * 4 + 0] * 2 + x) * 8;
+ int yoffs = (_videoWindows[vsp->windowNum * 4 + 1] + y);
animTable->srcPtr = getBackGround() + xoffs + yoffs * _screenWidth;
}