From 0979c285c0cdaf7efc65bdf86882db20596e1de7 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Fri, 8 Jun 2018 19:14:17 +0200 Subject: Make pugl work with testmain. --- plugingui/nativewindow_pugl.cc | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'plugingui/nativewindow_pugl.cc') diff --git a/plugingui/nativewindow_pugl.cc b/plugingui/nativewindow_pugl.cc index 59f03b1..f94b82b 100644 --- a/plugingui/nativewindow_pugl.cc +++ b/plugingui/nativewindow_pugl.cc @@ -272,7 +272,6 @@ void NativeWindowPugl::onDisplay(PuglView* view) Window& window = native->window; //window.redraw(); - printf("!!! %p %d %d\n", native, (int)window.wpixbuf.width, (int)window.wpixbuf.height); if((window.wpixbuf.width < 16) || (window.wpixbuf.height < 16)) { return; @@ -359,9 +358,8 @@ void NativeWindowPugl::onKeyboard(PuglView* view, bool press, uint32_t key) KeyEvent* e = new KeyEvent(); e->direction = press ? Direction::down : Direction::up; - printf("%d\n", key); - - switch(key) { + switch(key) + { case PUGL_KEY_LEFT: e->keycode = Key::left; break; case PUGL_KEY_RIGHT: e->keycode = Key::right; break; case PUGL_KEY_UP: e->keycode = Key::up; break; @@ -378,8 +376,6 @@ void NativeWindowPugl::onKeyboard(PuglView* view, bool press, uint32_t key) e->text.assign(1, (char)key); } - printf("\t text: %s\n", e->text.c_str()); - native->eventq.push_back(e); } -- cgit v1.2.3