[Scummvm-cvs-logs] SF.net SVN: scummvm:[42814] scummvm/trunk/engines/kyra/screen.cpp

lordhoto at users.sourceforge.net lordhoto at users.sourceforge.net
Sun Jul 26 16:17:22 CEST 2009


Revision: 42814
          http://scummvm.svn.sourceforge.net/scummvm/?rev=42814&view=rev
Author:   lordhoto
Date:     2009-07-26 14:17:21 +0000 (Sun, 26 Jul 2009)

Log Message:
-----------
Change KYRA to use our SJIS font, when it's available.

Modified Paths:
--------------
    scummvm/trunk/engines/kyra/screen.cpp

Modified: scummvm/trunk/engines/kyra/screen.cpp
===================================================================
--- scummvm/trunk/engines/kyra/screen.cpp	2009-07-26 14:17:06 UTC (rev 42813)
+++ scummvm/trunk/engines/kyra/screen.cpp	2009-07-26 14:17:21 UTC (rev 42814)
@@ -95,6 +95,14 @@
 		}
 
 		if (_useSJIS) {
+			// First we try to use ScummVM's own SJIS font.
+			Graphics::FontSjisSVM *font = new Graphics::FontSjisSVM();
+			if (!font || !font->loadData()) {
+				delete font;
+			} else {
+				_sjisFont = font;
+			}
+
 			if (!_sjisFont) {
 				// we use the FM-TOWNS font rom for PC-98, too, until we feel
 				// like adding support for the PC-98 font


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