diff options
author | pixel <pixel> | 2003-11-14 17:21:14 +0000 |
---|---|---|
committer | pixel <pixel> | 2003-11-14 17:21:14 +0000 |
commit | fae0c2bfe95a122de0f165791690dc18928a931c (patch) | |
tree | 1f8056a480702d72c4f871ad7375a575510bb7ff /lib/engine.cc | |
parent | d7575bef1e530eac004c973b0384a12561f0bb8b (diff) |
Started working on widgets.
Diffstat (limited to 'lib/engine.cc')
-rw-r--r-- | lib/engine.cc | 7 |
1 files changed, 4 insertions, 3 deletions
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; } |