aboutsummaryrefslogtreecommitdiff
path: root/engines/tsage/graphics.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2011-03-18 22:58:36 +1100
committerPaul Gilbert2011-03-18 22:58:36 +1100
commit9dad957454f2d4f7e8c7949e46d252346fbdd66b (patch)
tree2ef78dedffdf10cd0c867eed13d7ee5493cd9c01 /engines/tsage/graphics.cpp
parent2ea302077c53cc10f456ce9e3416320c37cdadc4 (diff)
downloadscummvm-rg350-9dad957454f2d4f7e8c7949e46d252346fbdd66b.tar.gz
scummvm-rg350-9dad957454f2d4f7e8c7949e46d252346fbdd66b.tar.bz2
scummvm-rg350-9dad957454f2d4f7e8c7949e46d252346fbdd66b.zip
TSAGE: Corrected background scrolling on wide-screen scenes
Diffstat (limited to 'engines/tsage/graphics.cpp')
-rw-r--r--engines/tsage/graphics.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/tsage/graphics.cpp b/engines/tsage/graphics.cpp
index 93bb7ea63f..93ac9f07d7 100644
--- a/engines/tsage/graphics.cpp
+++ b/engines/tsage/graphics.cpp
@@ -405,8 +405,8 @@ void GfxSurface::loadScreenSection(Graphics::Surface &dest, int xHalf, int yHalf
int screenNum = _globals->_sceneManager._scene->_activeScreenNumber;
Rect updateRect(0, 0, 160, 100);
updateRect.translate(xHalf * 160, yHalf * 100);
- int xHalfCount = (dest.w + 159) / 160;
- int yHalfCount = (dest.h + 99) / 100;
+ int xHalfCount = (_globals->_sceneManager._scene->_backgroundBounds.right + 159) / 160;
+ int yHalfCount = (_globals->_sceneManager._scene->_backgroundBounds.bottom + 99) / 100;
if (xSection < xHalfCount && ySection < yHalfCount) {
int rlbNum = xSection * yHalfCount + ySection;