summaryrefslogtreecommitdiff
path: root/lib/engine.cc
diff options
context:
space:
mode:
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;
}