[Scummvm-cvs-logs] CVS: scummvm/scumm charset.cpp,2.38,2.39
Chris Apers
chrilith at users.sourceforge.net
Wed Jun 4 02:34:01 CEST 2003
Update of /cvsroot/scummvm/scummvm/scumm
In directory sc8-pr-cvs1:/tmp/cvs-serv12099
Modified Files:
charset.cpp
Log Message:
Save a bit of space for PalmOS
Index: charset.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/charset.cpp,v
retrieving revision 2.38
retrieving revision 2.39
diff -u -d -r2.38 -r2.39
--- charset.cpp 2 Jun 2003 23:23:45 -0000 2.38
+++ charset.cpp 4 Jun 2003 09:33:01 -0000 2.39
@@ -197,6 +197,10 @@
}
// German Zak font (should work for US version too).
+#ifdef __PALM_OS__
+static byte *germanCharsetDataV2;
+static byte *frenchCharsetDataV2;
+#else
static byte germanCharsetDataV2[] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x01, 0x03, 0x06, 0x0c, 0x18, 0x3e, 0x03, 0x00,
@@ -459,7 +463,7 @@
0x18, 0x24, 0x00, 0x66, 0x66, 0x66, 0x3e, 0x00,
0x08, 0x0c, 0x0e, 0xff, 0xff, 0x0e, 0x0c, 0x08,
};
-
+#endif
void CharsetRendererV2::setCurID(byte id) {
@@ -851,3 +855,14 @@
_str.bottom = _top + height;
}
+#ifdef __PALM_OS__
+#include "scumm_globals.h" // init globals
+void Charset_initGlobals() {
+ GSETPTR(germanCharsetDataV2, GBVARS_GERMANCHARSETDATAV2_INDEX, byte, GBVARS_SCUMM)
+ GSETPTR(frenchCharsetDataV2, GBVARS_FRENCHCHARSETDATAV2_INDEX, byte, GBVARS_SCUMM)
+}
+void Charset_releaseGlobals() {
+ GRELEASEPTR(GBVARS_GERMANCHARSETDATAV2_INDEX, GBVARS_SCUMM)
+ GRELEASEPTR(GBVARS_FRENCHCHARSETDATAV2_INDEX, GBVARS_SCUMM)
+}
+#endif
More information about the Scummvm-git-logs
mailing list