From 5155d8df626b31634a3256a0ddb9b08bdd32b6e4 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Mon, 20 Aug 2007 20:18:06 +0000 Subject: 64bit AGOS fix by Mark Weaver svn-id: r28683 --- engines/agos/draw.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engines/agos/draw.cpp') 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; } -- cgit v1.2.3