summaryrefslogtreecommitdiff
path: root/lib/engine.cc
diff options
context:
space:
mode:
authorpixel <pixel>2003-03-26 14:07:43 +0000
committerpixel <pixel>2003-03-26 14:07:43 +0000
commitc00cd54ca5ed959cbccff7aa7261fb5025d1832c (patch)
treee706afd7029361a9f59882452a8ad2ecf2da0db6 /lib/engine.cc
parenta749e5e0f870dc2acde2de55cba2cd074d524442 (diff)
bleh
Diffstat (limited to 'lib/engine.cc')
-rw-r--r--lib/engine.cc10
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/engine.cc b/lib/engine.cc
index 7ccc995..99843c0 100644
--- a/lib/engine.cc
+++ b/lib/engine.cc
@@ -18,6 +18,9 @@ int mogltk::engine::frames, mogltk::engine::locked = 0;
double mogltk::engine::curfps = -1;
Uint32 mogltk::engine::curticks;
+mogltk::glbase * mogltk::engine::glbase_o = 0;
+mogltk::base * mogltk::engine::base_o = 0;
+
#define UPDATERATE 1000
int mogltk::engine::setup() throw(GeneralException) {
@@ -32,8 +35,6 @@ int mogltk::engine::setup() throw(GeneralException) {
inited = true;
- mogltk::SystemFont = new mogltk::font(&Input("font.bin"));
-
return 0;
}
@@ -48,6 +49,11 @@ int mogltk::engine::postsetup() throw(GeneralException) {
postsetuped = true;
+ if (glbase_o)
+ mogltk::SystemFont = new mogltk::glfont(&Input("font.bin"));
+ else
+ mogltk::SystemFont = new mogltk::font(&Input("font.bin"));
+
return 0;
}