From fae0c2bfe95a122de0f165791690dc18928a931c Mon Sep 17 00:00:00 2001 From: pixel Date: Fri, 14 Nov 2003 17:21:14 +0000 Subject: Started working on widgets. --- lib/engine.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'lib/engine.cc') diff --git a/lib/engine.cc b/lib/engine.cc index 40426c1..6e899e2 100644 --- a/lib/engine.cc +++ b/lib/engine.cc @@ -14,6 +14,7 @@ int mogltk::engine::mx, mogltk::engine::my, mogltk::engine::mz = 0, mogltk::engi int mogltk::engine::frames, mogltk::engine::locked = 0; double mogltk::engine::curfps = -1; Uint32 mogltk::engine::curticks; +mogltk::widget * mogltk::engine::root = 0; mogltk::glbase * mogltk::engine::glbase_o = 0; mogltk::base * mogltk::engine::base_o = 0; @@ -32,11 +33,11 @@ void mogltk::engine::keyevent::down(SDL_keysym) { int mogltk::engine::setup() throw(GeneralException) { if (inited) { - printm(M_WARNING, _("mogltk::engine::setup() called twice, ignoring second call.\n")); + printm(M_WARNING, FUNCNAME + _(" called twice, ignoring second call.\n")); return -1; } if (SDL_Init(0) < 0) { - throw GeneralException(_("Unable to start SDL base system")); + throw GeneralException(FUNCNAME + _(": Unable to start SDL base system")); } atexit(SDL_Quit); @@ -47,7 +48,7 @@ int mogltk::engine::setup() throw(GeneralException) { int mogltk::engine::postsetup() throw(GeneralException) { if (postsetuped) { - printm(M_WARNING, _("mogltk::engine::postsetup() called twice, ignoring second call.\n")); + printm(M_WARNING, FUNCNAME + _(" called twice, ignoring second call.\n")); return -1; } -- cgit v1.2.3