diff options
author | johndoe123 | 2013-04-20 00:34:32 +0200 |
---|---|---|
committer | johndoe123 | 2013-04-20 00:34:32 +0200 |
commit | 4fc57dac8fd6865494d21acfddeb69ab7fb1ad5c (patch) | |
tree | b94c1c72f00b06a44a78751f9a13a8528df2fb84 /engines/sword25/gfx/panel.h | |
parent | 176a3babc553d1d6eb2a57fddb0a9665fc4aaa71 (diff) | |
download | scummvm-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.h | 6 |
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); |