[Scummvm-cvs-logs] SF.net SVN: scummvm: [22616] scummvm/trunk/backends/sdl/graphics.cpp
eriktorbjorn at users.sourceforge.net
eriktorbjorn at users.sourceforge.net
Wed May 24 14:05:09 CEST 2006
Revision: 22616
Author: eriktorbjorn
Date: 2006-05-24 14:04:44 -0700 (Wed, 24 May 2006)
ViewCVS: http://svn.sourceforge.net/scummvm/?rev=22616&view=rev
Log Message:
-----------
The AGI engine's save/load dialog dirties the entire screen thirteen times
each iteration of the loop, causing a serious slowdown on my computer. It
empathically should not be doing that, of course, but to safe-guard against
such patological cases, if the entire screen is dirtied even once we can set
_forceFull to true.
Modified Paths:
--------------
scummvm/trunk/backends/sdl/graphics.cpp
Modified: scummvm/trunk/backends/sdl/graphics.cpp
===================================================================
--- scummvm/trunk/backends/sdl/graphics.cpp 2006-05-24 20:21:45 UTC (rev 22615)
+++ scummvm/trunk/backends/sdl/graphics.cpp 2006-05-24 21:04:44 UTC (rev 22616)
@@ -907,6 +907,11 @@
}
#endif
+ if (w == width && h == height) {
+ _forceFull = true;
+ return;
+ }
+
if (w > 0 && h > 0) {
SDL_Rect *r = &_dirtyRectList[_numDirtyRects++];
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