[Scummvm-cvs-logs] SF.net SVN: scummvm: [26742] scummvm/trunk/engines/touche

cyx at users.sourceforge.net cyx at users.sourceforge.net
Fri May 4 00:56:05 CEST 2007


Revision: 26742
          http://scummvm.svn.sourceforge.net/scummvm/?rev=26742&view=rev
Author:   cyx
Date:     2007-05-03 15:56:02 -0700 (Thu, 03 May 2007)

Log Message:
-----------
added a TODO for the german charset data and renamed some static arrays/data

Modified Paths:
--------------
    scummvm/trunk/engines/touche/graphics.cpp
    scummvm/trunk/engines/touche/graphics.h
    scummvm/trunk/engines/touche/staticres.cpp

Modified: scummvm/trunk/engines/touche/graphics.cpp
===================================================================
--- scummvm/trunk/engines/touche/graphics.cpp	2007-05-03 22:52:43 UTC (rev 26741)
+++ scummvm/trunk/engines/touche/graphics.cpp	2007-05-03 22:56:02 UTC (rev 26742)
@@ -31,9 +31,12 @@
 	switch (language) {
 	case Common::FR_FRA:
 	case Common::DE_DEU:
-		_fontOffs = _locFontOffs;
-		_fontSize = _locFontSize;
-		_fontData = _locFontData;
+		// TODO: dump the charset data in the original german version executable.
+		// For now, just re-use the french charset data (it contains the "eszett"
+		// character)
+		_fontOffs = _freFontOffs;
+		_fontSize = _freFontSize;
+		_fontData = _freFontData;
 		break;
 	case Common::ES_ESP:
 		_fontOffs = _spaFontOffs;

Modified: scummvm/trunk/engines/touche/graphics.h
===================================================================
--- scummvm/trunk/engines/touche/graphics.h	2007-05-03 22:52:43 UTC (rev 26741)
+++ scummvm/trunk/engines/touche/graphics.h	2007-05-03 22:56:02 UTC (rev 26742)
@@ -51,9 +51,9 @@
 	static const int _engFontSize;
 	static const uint8 _engFontData[];
 
-	static const uint16 _locFontOffs[];
-	static const int _locFontSize;
-	static const uint8 _locFontData[];
+	static const uint16 _freFontOffs[];
+	static const int _freFontSize;
+	static const uint8 _freFontData[];
 
 	static const uint16 _spaFontOffs[];
 	static const int _spaFontSize;

Modified: scummvm/trunk/engines/touche/staticres.cpp
===================================================================
--- scummvm/trunk/engines/touche/staticres.cpp	2007-05-03 22:52:43 UTC (rev 26741)
+++ scummvm/trunk/engines/touche/staticres.cpp	2007-05-03 22:56:02 UTC (rev 26742)
@@ -450,7 +450,7 @@
 	0x00, 0x35, 0xF0, 0x00, 0x00, 0x0F, 0xF0, 0x00, 0x00, 0x03, 0xC0, 0x00, 0x00
 };
 
-const uint16 Graphics::_locFontOffs[] = {
+const uint16 Graphics::_freFontOffs[] = {
 	0x0000, 0x0007, 0x0024, 0x0043, 0x0072, 0x00AD, 0x00E0, 0x0113, 0x0124, 0x0141,
 	0x015E, 0x0191, 0x01C4, 0x01E3, 0x01F8, 0x0215, 0x0232, 0x0269, 0x0286, 0x02BD,
 	0x02F4, 0x032B, 0x0362, 0x0399, 0x03D0, 0x0407, 0x043E, 0x045B, 0x047C, 0x0495,
@@ -473,9 +473,9 @@
 	0x0000, 0x0000, 0x0000, 0x1920
 };
 
-const int Graphics::_locFontSize = ARRAYSIZE(Graphics::_locFontOffs);
+const int Graphics::_freFontSize = ARRAYSIZE(Graphics::_freFontOffs);
 
-const uint8 Graphics::_locFontData[] = {
+const uint8 Graphics::_freFontData[] = {
 	0x01, 0x01, 0x08, 0x00, 0x00, 0x00, 0x00, 0x01, 0x0D, 0x05, 0x3C, 0x03, 0xD7, 0x0D, 0xD7, 0xCD,
 	0xD7, 0xCD, 0xD7, 0xCD, 0xD7, 0xC3, 0xD7, 0xC0, 0xD7, 0xC0, 0x3F, 0xC0, 0xD7, 0x00, 0xD7, 0xC0,
 	0x3F, 0xC0, 0x0F, 0x00, 0x02, 0x07, 0x09, 0x3C, 0x3C, 0x00, 0x0C, 0xD7, 0xD7, 0x00, 0x37, 0xD7,


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