diff options
author | richiesams | 2013-08-30 17:08:38 -0500 |
---|---|---|
committer | Willem Jan Palenstijn | 2013-09-24 13:59:39 +0200 |
commit | 21474d32ab2d2de784c6cd12f85e0f9ad68bcea4 (patch) | |
tree | 32b6c3cdd468f49a49155ffe19c8968b001a01c4 /engines | |
parent | ef3e26a0730b070d2026641f554b525ae9f4b138 (diff) | |
download | scummvm-rg350-21474d32ab2d2de784c6cd12f85e0f9ad68bcea4.tar.gz scummvm-rg350-21474d32ab2d2de784c6cd12f85e0f9ad68bcea4.tar.bz2 scummvm-rg350-21474d32ab2d2de784c6cd12f85e0f9ad68bcea4.zip |
ZVISION: Fix error is RenderManager backgroundOffset handling
Diffstat (limited to 'engines')
-rw-r--r-- | engines/zvision/render_manager.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/engines/zvision/render_manager.cpp b/engines/zvision/render_manager.cpp index b1282dc007..96030ba2b9 100644 --- a/engines/zvision/render_manager.cpp +++ b/engines/zvision/render_manager.cpp @@ -118,7 +118,7 @@ void RenderManager::renderSubRectToScreen(Graphics::Surface &surface, int16 dest if (destinationY > 0) { // Move destinationY to 0 - subRectX = surface.w - destinationX; + subRectY = surface.h - destinationY; destinationY = 0; } } @@ -327,12 +327,12 @@ void RenderManager::moveBackground(int offset) { if (_backgroundOffset.x <= -_backgroundWidth) _backgroundOffset.x += _backgroundWidth; else if (_backgroundOffset.x >= _backgroundWidth) - _backgroundOffset.x += _backgroundWidth; + _backgroundOffset.x -= _backgroundWidth; if (_backgroundOffset.y <= -_backgroundHeight) _backgroundOffset.y += _backgroundHeight; else if (_backgroundOffset.y >= _backgroundHeight) - _backgroundOffset.y += _backgroundHeight; + _backgroundOffset.y -= _backgroundHeight; renderImageToScreen(_currentBackground, 0, _screenCenterY - _backgroundOffset.y, true); } else if (state == RenderTable::PANORAMA) { @@ -341,12 +341,12 @@ void RenderManager::moveBackground(int offset) { if (_backgroundOffset.x <= -_backgroundWidth) _backgroundOffset.x += _backgroundWidth; else if (_backgroundOffset.x >= _backgroundWidth) - _backgroundOffset.x += _backgroundWidth; + _backgroundOffset.x -= _backgroundWidth; if (_backgroundOffset.y <= -_backgroundHeight) _backgroundOffset.y += _backgroundHeight; else if (_backgroundOffset.y >= _backgroundHeight) - _backgroundOffset.y += _backgroundHeight; + _backgroundOffset.y -= _backgroundHeight; renderImageToScreen(_currentBackground, _screenCenterX - _backgroundOffset.x, 0, true); } else { |