aboutsummaryrefslogtreecommitdiffstats
path: root/pugl_cairo_test.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2016-09-18 22:28:30 -0400
committerDavid Robillard <d@drobilla.net>2016-09-18 22:28:30 -0400
commit69b2d6336b3598957a59a37a6bc95bcb154bab95 (patch)
treec3bdd423f0f795993e96c093f4ecdba09a6cc78b /pugl_cairo_test.c
parent8150102ad806632e70f8bd8cd211dbe74bc40be5 (diff)
downloadpugl-69b2d6336b3598957a59a37a6bc95bcb154bab95.tar.gz
pugl-69b2d6336b3598957a59a37a6bc95bcb154bab95.tar.bz2
pugl-69b2d6336b3598957a59a37a6bc95bcb154bab95.zip
Remove GLUT-like event callbacks
Diffstat (limited to 'pugl_cairo_test.c')
-rw-r--r--pugl_cairo_test.c8
1 files changed, 6 insertions, 2 deletions
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);