diff options
author | Johannes Schickel | 2009-08-19 16:23:26 +0000 |
---|---|---|
committer | Johannes Schickel | 2009-08-19 16:23:26 +0000 |
commit | 88ac4190529f220c2d8ac0879815fba3e0d72d1f (patch) | |
tree | 9d02dbf795a9d8efa15addc674ee7dc680c0814a /engines | |
parent | 34e30a29b5d4902514e696369f8714b171a778bb (diff) | |
download | scummvm-rg350-88ac4190529f220c2d8ac0879815fba3e0d72d1f.tar.gz scummvm-rg350-88ac4190529f220c2d8ac0879815fba3e0d72d1f.tar.bz2 scummvm-rg350-88ac4190529f220c2d8ac0879815fba3e0d72d1f.zip |
Use Common::List::empty instead of Common::List::size, which is faster for checking whether the list is empty and easier to read.
svn-id: r43538
Diffstat (limited to 'engines')
-rw-r--r-- | engines/kyra/screen.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/kyra/screen.cpp b/engines/kyra/screen.cpp index bf9a9f4246..6542b15183 100644 --- a/engines/kyra/screen.cpp +++ b/engines/kyra/screen.cpp @@ -207,7 +207,7 @@ void Screen::setResolution() { } void Screen::updateScreen() { - bool needRealUpdate = _forceFullUpdate || _dirtyRects.size() || _paletteChanged; + bool needRealUpdate = _forceFullUpdate || !_dirtyRects.empty() || _paletteChanged; _paletteChanged = false; if (_useOverlays) @@ -337,6 +337,7 @@ void Screen::updateDirtyRectsOvl() { _system->copyRectToScreen(dst, 640, it->left<<1, it->top<<1, it->width()<<1, it->height()<<1); } } + _forceFullUpdate = false; _dirtyRects.clear(); } |