aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorMarisa-Chan2013-10-20 20:07:31 +0000
committerMarisa-Chan2013-10-20 20:07:31 +0000
commitdb3d154c63669752d0b1d75dd8f75707b671d862 (patch)
tree03ae9675c1b80af6328491a90784baed8db9e70f /engines
parentdbdefe23e9861781af63608cd450cfaed86de89a (diff)
downloadscummvm-rg350-db3d154c63669752d0b1d75dd8f75707b671d862.tar.gz
scummvm-rg350-db3d154c63669752d0b1d75dd8f75707b671d862.tar.bz2
scummvm-rg350-db3d154c63669752d0b1d75dd8f75707b671d862.zip
ZVISION: SetPartialScreen must update part of currentBackground image.
Diffstat (limited to 'engines')
-rw-r--r--engines/zvision/actions.cpp8
-rw-r--r--engines/zvision/actions.h2
2 files changed, 5 insertions, 5 deletions
diff --git a/engines/zvision/actions.cpp b/engines/zvision/actions.cpp
index 1d4ce9c604..21c01546fd 100644
--- a/engines/zvision/actions.cpp
+++ b/engines/zvision/actions.cpp
@@ -321,10 +321,10 @@ ActionSetPartialScreen::ActionSetPartialScreen(const Common::String &line) {
bool ActionSetPartialScreen::execute(ZVision *engine) {
RenderManager *renderManager = engine->getRenderManager();
- if (_backgroundColor > 0) {
- renderManager->clearWorkingWindowTo555Color(_backgroundColor);
- }
- renderManager->renderImageToScreen(_fileName, _x, _y);
+ if (_backgroundColor >= 0)
+ renderManager->renderImageToBackground(_fileName, _x, _y, _backgroundColor);
+ else
+ renderManager->renderImageToBackground(_fileName, _x, _y);
return true;
}
diff --git a/engines/zvision/actions.h b/engines/zvision/actions.h
index e7a4ea302f..15923d66d1 100644
--- a/engines/zvision/actions.h
+++ b/engines/zvision/actions.h
@@ -300,7 +300,7 @@ private:
uint _x;
uint _y;
Common::String _fileName;
- uint16 _backgroundColor;
+ int32 _backgroundColor;
};
class ActionSetScreen : public ResultAction {