aboutsummaryrefslogtreecommitdiffstats
path: root/include/pugl/detail/implementation.c
diff options
context:
space:
mode:
Diffstat (limited to 'include/pugl/detail/implementation.c')
-rw-r--r--include/pugl/detail/implementation.c22
1 files changed, 6 insertions, 16 deletions
diff --git a/include/pugl/detail/implementation.c b/include/pugl/detail/implementation.c
index 6a5f932..e9a3450 100644
--- a/include/pugl/detail/implementation.c
+++ b/include/pugl/detail/implementation.c
@@ -331,30 +331,20 @@ puglDispatchEvents(PuglWorld* world)
return puglUpdate(world, 0.0);
}
+#endif
+
PuglStatus
-puglEnterContext(PuglView* view, bool drawing)
+puglEnterContext(PuglView* view)
{
- const PuglEventExpose expose = {
- PUGL_EXPOSE, 0, 0.0, 0.0, view->frame.width, view->frame.height};
-
- view->backend->enter(view, drawing ? &expose : NULL);
-
- return PUGL_SUCCESS;
+ return view->backend->enter(view, NULL);
}
PuglStatus
-puglLeaveContext(PuglView* view, bool drawing)
+puglLeaveContext(PuglView* view)
{
- const PuglEventExpose expose = {
- PUGL_EXPOSE, 0, 0.0, 0.0, view->frame.width, view->frame.height};
-
- view->backend->leave(view, drawing ? &expose : NULL);
-
- return PUGL_SUCCESS;
+ return view->backend->leave(view, NULL);
}
-#endif
-
PuglStatus
puglSetEventFunc(PuglView* view, PuglEventFunc eventFunc)
{