summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/engine.cc2
-rw-r--r--lib/glbase.cc1
2 files changed, 1 insertions, 2 deletions
diff --git a/lib/engine.cc b/lib/engine.cc
index 35c9971..7ccc995 100644
--- a/lib/engine.cc
+++ b/lib/engine.cc
@@ -169,7 +169,7 @@ void mogltk::engine::pollevents() {
case SDL_KEYDOWN:
case SDL_KEYUP:
printm(M_INFO, String("Key ") + event.key.keysym.scancode + " on keyboard " + event.key.which + (event.key.state == SDL_PRESSED ? " pressed" : " released") + "\n");
- printm(M_INFO, "SDL keysym: %i - Unicode: %04x - modifiers: %04x\n", event.key.keysym.sym, event.key.keysym.unicode, event.key.keysym.mod);
+ printm(M_INFO, "SDL keysym: %i - Unicode: %04x = `%c`- modifiers: %04x\n", event.key.keysym.sym, event.key.keysym.unicode, event.key.keysym.unicode, event.key.keysym.mod);
if (event.key.keysym.sym == 27)
hastoreturn = quitrequest = true;
break;
diff --git a/lib/glbase.cc b/lib/glbase.cc
index 8800f47..86d0774 100644
--- a/lib/glbase.cc
+++ b/lib/glbase.cc
@@ -26,7 +26,6 @@ int mogltk::glbase::setup(int w, int h, int flags) throw(GeneralException) {
}
if (!(surface = SDL_SetVideoMode(width, height, 0, flags | SDL_OPENGL))) {
-// if (!(surface = SDL_SetVideoMode(1024, 768, 0, flags | SDL_OPENGL))) {
throw GeneralException(String("Couldn't set GL mode: ") + SDL_GetError());
}