From 3f2f5e099738f409501126168b3342a6c1284b34 Mon Sep 17 00:00:00 2001 From: Chris Apers Date: Sat, 8 Oct 2005 21:11:45 +0000 Subject: PalmOS : very bad hack to fix global constructor problem with ARM svn-id: r18970 --- graphics/font.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'graphics/font.h') 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 -- cgit v1.2.3