aboutsummaryrefslogtreecommitdiffstats
path: root/pugl/pugl_stub.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-02-18 22:50:52 +0100
committerDavid Robillard <d@drobilla.net>2020-02-18 23:20:02 +0100
commit0059c630d7406f672c113d6dc6da78810160ddbb (patch)
tree789ede3ed59b6301245b823654e31662adeda726 /pugl/pugl_stub.h
parent2bae8905a97aa8a29826c78311c826d61f075e0e (diff)
downloadpugl-0059c630d7406f672c113d6dc6da78810160ddbb.tar.gz
pugl-0059c630d7406f672c113d6dc6da78810160ddbb.tar.bz2
pugl-0059c630d7406f672c113d6dc6da78810160ddbb.zip
Pass expose event to backend enter and leave functions
This is needed for clipping. Unfortunately, the puglEnterContext() and puglLeaveContext() API was not suitable for this, but this shouldn't matter in user code because it is only used for setup, and is slated for removal anyway. Instead, just call the backend functions directly in the implementation.
Diffstat (limited to 'pugl/pugl_stub.h')
-rw-r--r--pugl/pugl_stub.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/pugl/pugl_stub.h b/pugl/pugl_stub.h
index 40d1036..f50f96b 100644
--- a/pugl/pugl_stub.h
+++ b/pugl/pugl_stub.h
@@ -71,18 +71,18 @@ puglStubDestroy(PuglView* view)
}
static inline PuglStatus
-puglStubEnter(PuglView* view, bool drawing)
+puglStubEnter(PuglView* view, const PuglEventExpose* expose)
{
(void)view;
- (void)drawing;
+ (void)expose;
return PUGL_SUCCESS;
}
static inline PuglStatus
-puglStubLeave(PuglView* view, bool drawing)
+puglStubLeave(PuglView* view, const PuglEventExpose* expose)
{
(void)view;
- (void)drawing;
+ (void)expose;
return PUGL_SUCCESS;
}