From dc9f1d852d3fba8ddcf7bb535810ad384900fe06 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 7 Sep 2019 14:16:19 +0200 Subject: Clean up error handling --- pugl/detail/types.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'pugl/detail/types.h') diff --git a/pugl/detail/types.h b/pugl/detail/types.h index 4ac224b..d018be5 100644 --- a/pugl/detail/types.h +++ b/pugl/detail/types.h @@ -89,22 +89,22 @@ typedef void PuglSurface; /** Graphics backend interface. */ struct PuglBackendImpl { /** Get visual information from display and setup view as necessary. */ - int (*configure)(PuglView*); + PuglStatus (*configure)(PuglView*); /** Create surface and drawing context. */ - int (*create)(PuglView*); + PuglStatus (*create)(PuglView*); /** Destroy surface and drawing context. */ - int (*destroy)(PuglView*); + PuglStatus (*destroy)(PuglView*); /** Enter drawing context, for drawing if parameter is true. */ - int (*enter)(PuglView*, bool); + PuglStatus (*enter)(PuglView*, bool); /** Leave drawing context, after drawing if parameter is true. */ - int (*leave)(PuglView*, bool); + PuglStatus (*leave)(PuglView*, bool); /** Resize drawing context to the given width and height. */ - int (*resize)(PuglView*, int, int); + PuglStatus (*resize)(PuglView*, int, int); /** Return the puglGetContext() handle for the application, if any. */ void* (*getContext)(PuglView*); -- cgit v1.2.1