From 0059c630d7406f672c113d6dc6da78810160ddbb Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 18 Feb 2020 22:50:52 +0100 Subject: 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. --- pugl/pugl_stub.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'pugl/pugl_stub.h') 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; } -- cgit v1.2.1