From db3d154c63669752d0b1d75dd8f75707b671d862 Mon Sep 17 00:00:00 2001 From: Marisa-Chan Date: Sun, 20 Oct 2013 20:07:31 +0000 Subject: ZVISION: SetPartialScreen must update part of currentBackground image. --- engines/zvision/actions.cpp | 8 ++++---- engines/zvision/actions.h | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'engines') 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 { -- cgit v1.2.3