[Scummvm-cvs-logs] SF.net SVN: scummvm:[47779] scummvm/trunk/engines/sci/graphics/cache.cpp

mthreepwood at users.sourceforge.net mthreepwood at users.sourceforge.net
Sun Jan 31 22:31:11 CET 2010


Revision: 47779
          http://scummvm.svn.sourceforge.net/scummvm/?rev=47779&view=rev
Author:   mthreepwood
Date:     2010-01-31 21:31:11 +0000 (Sun, 31 Jan 2010)

Log Message:
-----------
getFont() should check _cachedFonts and not _cachedViews. Fixes segfaults when using fonts.

Modified Paths:
--------------
    scummvm/trunk/engines/sci/graphics/cache.cpp

Modified: scummvm/trunk/engines/sci/graphics/cache.cpp
===================================================================
--- scummvm/trunk/engines/sci/graphics/cache.cpp	2010-01-31 21:11:36 UTC (rev 47778)
+++ scummvm/trunk/engines/sci/graphics/cache.cpp	2010-01-31 21:31:11 UTC (rev 47779)
@@ -67,7 +67,7 @@
 	if (_cachedFonts.size() >= MAX_CACHED_FONTS)
 		purgeFontCache();
 
-	if (!_cachedViews.contains(fontId))
+	if (!_cachedFonts.contains(fontId))
 		_cachedFonts[fontId] = new Font(_resMan, _screen, fontId);
 
 	return _cachedFonts[fontId];


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