diff options
author | Chris Apers | 2003-11-12 16:00:11 +0000 |
---|---|---|
committer | Chris Apers | 2003-11-12 16:00:11 +0000 |
commit | de1e3baf41f60df4afe1d3b7eef2eb2fca00f3a2 (patch) | |
tree | ed16ba1c98374b58a51c1f6af57a4c34a409d94d /simon/charset.cpp | |
parent | 0be0f0122693ae442a42a1139cf8512ad30327f0 (diff) | |
download | scummvm-rg350-de1e3baf41f60df4afe1d3b7eef2eb2fca00f3a2.tar.gz scummvm-rg350-de1e3baf41f60df4afe1d3b7eef2eb2fca00f3a2.tar.bz2 scummvm-rg350-de1e3baf41f60df4afe1d3b7eef2eb2fca00f3a2.zip |
Preliminary support of Simon games on PalmOS
svn-id: r11269
Diffstat (limited to 'simon/charset.cpp')
-rw-r--r-- | simon/charset.cpp | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/simon/charset.cpp b/simon/charset.cpp index a026235a3b..9592320f2a 100644 --- a/simon/charset.cpp +++ b/simon/charset.cpp @@ -285,6 +285,14 @@ void SimonEngine::video_putchar_newline(FillOrCopyStruct *fcs) { fcs->textRow++; } +#ifdef __PALM_OS__ +static const byte *french_video_font; +static const byte *german_video_font; +static const byte *hebrew_video_font; +static const byte *italian_video_font; +static const byte *spanish_video_font; +static const byte *video_font; +#else static const byte french_video_font[] = { 0, 0, 0, 0, 0, 0, 0, 0, 32, 112, 112, 32, 32, 0, 32, 0, @@ -890,6 +898,7 @@ static const byte video_font[] = { 252, 252, 252, 252, 252, 252, 252, 252, 240, 240, 240, 240, 240, 240, 240, 240, }; +#endif void SimonEngine::video_putchar_drawchar(FillOrCopyStruct *fcs, uint x, uint y, byte chr) { const byte *src; @@ -934,3 +943,33 @@ void SimonEngine::video_putchar_drawchar(FillOrCopyStruct *fcs, uint x, uint y, } } // End of namespace Simon + +static const byte *french_video_font; +static const byte *german_video_font; +static const byte *hebrew_video_font; +static const byte *italian_video_font; +static const byte *spanish_video_font; +static const byte *video_font; + +#ifdef __PALM_OS__ +#include "scumm_globals.h" + +_GINIT(Simon_Charset) +_GSETPTR(Simon::french_video_font, GBVARS_FRENCHVIDEOFONT_INDEX, byte, GBVARS_SIMON) +_GSETPTR(Simon::german_video_font, GBVARS_GERMANVIDEOFONT_INDEX, byte, GBVARS_SIMON) +_GSETPTR(Simon::hebrew_video_font, GBVARS_HEBREWVIDEOFONT_INDEX, byte, GBVARS_SIMON) +_GSETPTR(Simon::italian_video_font, GBVARS_ITALIANVIDEOFONT_INDEX, byte, GBVARS_SIMON) +_GSETPTR(Simon::spanish_video_font, GBVARS_SPANISHVIDEOFONT_INDEX, byte, GBVARS_SIMON) +_GSETPTR(Simon::video_font, GBVARS_VIDEOFONT_INDEX, byte, GBVARS_SIMON) +_GEND + +_GRELEASE(Simon_Charset) +_GRELEASEPTR(GBVARS_FRENCHVIDEOFONT_INDEX, GBVARS_SIMON) +_GRELEASEPTR(GBVARS_GERMANVIDEOFONT_INDEX, GBVARS_SIMON) +_GRELEASEPTR(GBVARS_HEBREWVIDEOFONT_INDEX, GBVARS_SIMON) +_GRELEASEPTR(GBVARS_ITALIANVIDEOFONT_INDEX, GBVARS_SIMON) +_GRELEASEPTR(GBVARS_SPANISHVIDEOFONT_INDEX, GBVARS_SIMON) +_GRELEASEPTR(GBVARS_VIDEOFONT_INDEX, GBVARS_SIMON) +_GEND + +#endif |