aboutsummaryrefslogtreecommitdiff
path: root/engines/sword25/gfx/panel.h
diff options
context:
space:
mode:
authorjohndoe1232013-04-20 00:34:32 +0200
committerjohndoe1232013-04-20 00:34:32 +0200
commit4fc57dac8fd6865494d21acfddeb69ab7fb1ad5c (patch)
treeb94c1c72f00b06a44a78751f9a13a8528df2fb84 /engines/sword25/gfx/panel.h
parent176a3babc553d1d6eb2a57fddb0a9665fc4aaa71 (diff)
downloadscummvm-rg350-4fc57dac8fd6865494d21acfddeb69ab7fb1ad5c.tar.gz
scummvm-rg350-4fc57dac8fd6865494d21acfddeb69ab7fb1ad5c.tar.bz2
scummvm-rg350-4fc57dac8fd6865494d21acfddeb69ab7fb1ad5c.zip
SWORD25: Fix blitting code
- Rename collectRenderQueue to preRender - Only do forceRefresh() in Panel::setColor() and Text::setText() if the new values are different - Move child object resorting from RenderObject::render() into RenderObject::preRender()
Diffstat (limited to 'engines/sword25/gfx/panel.h')
-rw-r--r--engines/sword25/gfx/panel.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/engines/sword25/gfx/panel.h b/engines/sword25/gfx/panel.h
index cb94048360..74a93247b6 100644
--- a/engines/sword25/gfx/panel.h
+++ b/engines/sword25/gfx/panel.h
@@ -51,8 +51,10 @@ public:
return _color;
}
void setColor(uint color) {
- _color = color;
- forceRefresh();
+ if (_color != color) {
+ _color = color;
+ forceRefresh();
+ }
}
virtual bool persist(OutputPersistenceBlock &writer);