From 69b2d6336b3598957a59a37a6bc95bcb154bab95 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 18 Sep 2016 22:28:30 -0400 Subject: Remove GLUT-like event callbacks --- pugl_cairo_test.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'pugl_cairo_test.c') diff --git a/pugl_cairo_test.c b/pugl_cairo_test.c index 508a57a..ccffab5 100644 --- a/pugl_cairo_test.c +++ b/pugl_cairo_test.c @@ -149,6 +149,12 @@ onEvent(PuglView* view, const PuglEvent* event) entered = false; puglPostRedisplay(view); break; + case PUGL_EXPOSE: + onDisplay(view); + break; + case PUGL_CLOSE: + onClose(view); + break; default: break; } } @@ -181,8 +187,6 @@ main(int argc, char** argv) puglIgnoreKeyRepeat(view, ignoreKeyRepeat); puglSetEventFunc(view, onEvent); - puglSetDisplayFunc(view, onDisplay); - puglSetCloseFunc(view, onClose); puglCreateWindow(view, "Pugl Test"); puglShowWindow(view); -- cgit v1.2.1