[Scummvm-cvs-logs] SF.net SVN: scummvm:[43538] scummvm/trunk/engines/kyra/screen.cpp
lordhoto at users.sourceforge.net
lordhoto at users.sourceforge.net
Wed Aug 19 18:23:27 CEST 2009
Revision: 43538
http://scummvm.svn.sourceforge.net/scummvm/?rev=43538&view=rev
Author: lordhoto
Date: 2009-08-19 16:23:26 +0000 (Wed, 19 Aug 2009)
Log Message:
-----------
Use Common::List::empty instead of Common::List::size, which is faster for checking whether the list is empty and easier to read.
Modified Paths:
--------------
scummvm/trunk/engines/kyra/screen.cpp
Modified: scummvm/trunk/engines/kyra/screen.cpp
===================================================================
--- scummvm/trunk/engines/kyra/screen.cpp 2009-08-19 16:19:55 UTC (rev 43537)
+++ scummvm/trunk/engines/kyra/screen.cpp 2009-08-19 16:23:26 UTC (rev 43538)
@@ -207,7 +207,7 @@
}
void Screen::updateScreen() {
- bool needRealUpdate = _forceFullUpdate || _dirtyRects.size() || _paletteChanged;
+ bool needRealUpdate = _forceFullUpdate || !_dirtyRects.empty() || _paletteChanged;
_paletteChanged = false;
if (_useOverlays)
@@ -337,6 +337,7 @@
_system->copyRectToScreen(dst, 640, it->left<<1, it->top<<1, it->width()<<1, it->height()<<1);
}
}
+
_forceFullUpdate = false;
_dirtyRects.clear();
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list