diff options
author | Chris Apers | 2005-10-08 21:11:45 +0000 |
---|---|---|
committer | Chris Apers | 2005-10-08 21:11:45 +0000 |
commit | 3f2f5e099738f409501126168b3342a6c1284b34 (patch) | |
tree | 930276a10140e18577c8c3a58475dce78db82a81 /graphics/font.h | |
parent | 5b514241f34a0f25f98a280801df5d2f1f7d9dbf (diff) | |
download | scummvm-rg350-3f2f5e099738f409501126168b3342a6c1284b34.tar.gz scummvm-rg350-3f2f5e099738f409501126168b3342a6c1284b34.tar.bz2 scummvm-rg350-3f2f5e099738f409501126168b3342a6c1284b34.zip |
PalmOS : very bad hack to fix global constructor problem with ARM
svn-id: r18970
Diffstat (limited to 'graphics/font.h')
-rw-r--r-- | graphics/font.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/graphics/font.h b/graphics/font.h index c67ad1990c..54e1bcc8e0 100644 --- a/graphics/font.h +++ b/graphics/font.h @@ -116,6 +116,18 @@ public: virtual void drawChar(Surface *dst, byte chr, int x, int y, uint32 color) const; }; +#if (defined(PALMOS_ARM) || defined(PALMOS_DEBUG)) +# define DEFINE_FONT(n) \ + const NewFont *n; \ + void create_##n() { \ + n = new NewFont(desc); \ + } + +# define INIT_FONT(n) \ + extern void create_##n(); \ + create_##n(); +#endif + } // End of namespace Graphics #endif |