summaryrefslogtreecommitdiff
path: root/lib/engine.cc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/engine.cc')
-rw-r--r--lib/engine.cc7
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;
}