Skip to content

Commit

Permalink
ZVISION: SetPartialScreen must update part of currentBackground image.
Browse files Browse the repository at this point in the history
  • Loading branch information
Marisa-Chan committed Oct 20, 2013
1 parent dbdefe2 commit db3d154
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions engines/zvision/actions.cpp
Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion engines/zvision/actions.h
Expand Up @@ -300,7 +300,7 @@ class ActionSetPartialScreen : public ResultAction {
uint _x;
uint _y;
Common::String _fileName;
uint16 _backgroundColor;
int32 _backgroundColor;
};

class ActionSetScreen : public ResultAction {
Expand Down

0 comments on commit db3d154

Please sign in to comment.