diff options
author | Paul Gilbert | 2011-03-18 22:58:36 +1100 |
---|---|---|
committer | Paul Gilbert | 2011-03-18 22:58:36 +1100 |
commit | 9dad957454f2d4f7e8c7949e46d252346fbdd66b (patch) | |
tree | 2ef78dedffdf10cd0c867eed13d7ee5493cd9c01 /engines/tsage/graphics.cpp | |
parent | 2ea302077c53cc10f456ce9e3416320c37cdadc4 (diff) | |
download | scummvm-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.cpp | 4 |
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; |