From c00cd54ca5ed959cbccff7aa7261fb5025d1832c Mon Sep 17 00:00:00 2001 From: pixel Date: Wed, 26 Mar 2003 14:07:43 +0000 Subject: bleh --- lib/engine.cc | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'lib/engine.cc') 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; } -- cgit v1.2.3