aboutsummaryrefslogtreecommitdiff
path: root/scumm
diff options
context:
space:
mode:
authorChris Apers2003-06-04 09:33:01 +0000
committerChris Apers2003-06-04 09:33:01 +0000
commit4e2eb20935a8660124541e91135326926a0353e9 (patch)
tree9eb79edcc6ba29ab8adac62b1a86e1400198cecf /scumm
parent0bb87879c8d817f3db15fb3ae2ba0a9384e3566a (diff)
downloadscummvm-rg350-4e2eb20935a8660124541e91135326926a0353e9.tar.gz
scummvm-rg350-4e2eb20935a8660124541e91135326926a0353e9.tar.bz2
scummvm-rg350-4e2eb20935a8660124541e91135326926a0353e9.zip
Save a bit of space for PalmOS
svn-id: r8289
Diffstat (limited to 'scumm')
-rw-r--r--scumm/charset.cpp17
1 files changed, 16 insertions, 1 deletions
diff --git a/scumm/charset.cpp b/scumm/charset.cpp
index 0d3a4e6aaa..4a37b555d2 100644
--- a/scumm/charset.cpp
+++ b/scumm/charset.cpp
@@ -197,6 +197,10 @@ void CharsetRenderer::addLinebreaks(int a, byte *str, int pos, int maxwidth) {
}
// 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 @@ static byte frenchCharsetDataV2[] = {
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 @@ void CharsetRendererNut::printChar(int chr) {
_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