aboutsummaryrefslogtreecommitdiff
path: root/graphics/newfont.cpp
diff options
context:
space:
mode:
authorMax Horn2004-08-15 14:05:28 +0000
committerMax Horn2004-08-15 14:05:28 +0000
commitbfe9c26a3d838d17c28eceac00c0e35cd5c6138e (patch)
treeed9247d6b9b3d3ebdb50b76eea352a146ad30811 /graphics/newfont.cpp
parent0f142572f7e4ee643a462d22654a4f9dd9b2ee7a (diff)
downloadscummvm-rg350-bfe9c26a3d838d17c28eceac00c0e35cd5c6138e.tar.gz
scummvm-rg350-bfe9c26a3d838d17c28eceac00c0e35cd5c6138e.tar.bz2
scummvm-rg350-bfe9c26a3d838d17c28eceac00c0e35cd5c6138e.zip
Changed the way NewFonts are instantiated (will make it easier to add multiple fonts)
svn-id: r14625
Diffstat (limited to 'graphics/newfont.cpp')
-rw-r--r--graphics/newfont.cpp28
1 files changed, 6 insertions, 22 deletions
diff --git a/graphics/newfont.cpp b/graphics/newfont.cpp
index a308bb6656..f87b2fa3d1 100644
--- a/graphics/newfont.cpp
+++ b/graphics/newfont.cpp
@@ -1,4 +1,4 @@
-/* Generated by convbdf on Thu Nov 20 00:15:51 2003. */
+/* Generated by convbdf on Sun Aug 15 15:59:36 2004. */
#include "common/stdafx.h"
#include "graphics/font.h"
@@ -2565,24 +2565,7 @@ static const unsigned char _sysfont_width[] = {
};
/* Exported structure definition. */
-NewFont::NewFont() {
- name = "04b-16b-10";
- maxwidth = 9;
- height = 10;
- ascent = 8;
- firstchar = 33;
- size = 94;
- bits = _font_bits;
- offset = 0; /* no encode table*/
- width = _sysfont_width;
- defaultchar = 33;
- bits_size = sizeof(_font_bits)/sizeof(bitmap_t);
-}
-
-const NewFont g_sysfont;
-
-#if 0
-const Font g_sysfont = {
+static const FontDesc desc = {
"04b-16b-10",
9,
10,
@@ -2593,8 +2576,9 @@ const Font g_sysfont = {
0, /* no encode table*/
_sysfont_width,
33,
- sizeof(_font_bits)/sizeof(bitmap_t),
+ sizeof(_font_bits)/sizeof(bitmap_t)
};
-#endif
-} // End of namespace Graphics
+const NewFont g_sysfont(desc);
+
+} // End of namespace GUI