aboutsummaryrefslogtreecommitdiffstats
path: root/pugl/detail
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-04-01 19:35:59 +0200
committerDavid Robillard <d@drobilla.net>2020-04-01 19:41:37 +0200
commitc1e4ec68aa37718d7e472486c117a81d08363f14 (patch)
treeab172395d152d3f8fe40db8cae4cd8b53fe94684 /pugl/detail
parentfcddc7933dbff47754b8e4acea7406b77df1bf21 (diff)
downloadpugl-c1e4ec68aa37718d7e472486c117a81d08363f14.tar.gz
pugl-c1e4ec68aa37718d7e472486c117a81d08363f14.tar.bz2
pugl-c1e4ec68aa37718d7e472486c117a81d08363f14.zip
Add PUGL_BAD_PARAMETER status
Diffstat (limited to 'pugl/detail')
-rw-r--r--pugl/detail/implementation.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/pugl/detail/implementation.c b/pugl/detail/implementation.c
index d7f1413..1454899 100644
--- a/pugl/detail/implementation.c
+++ b/pugl/detail/implementation.c
@@ -60,6 +60,7 @@ puglStrerror(const PuglStatus status)
case PUGL_FAILURE: return "Non-fatal failure";
case PUGL_UNKNOWN_ERROR: return "Unknown system error";
case PUGL_BAD_BACKEND: return "Invalid or missing backend";
+ case PUGL_BAD_PARAMETER: return "Invalid parameter";
case PUGL_BACKEND_FAILED: return "Backend initialisation failed";
case PUGL_REGISTRATION_FAILED: return "Window class registration failed";
case PUGL_CREATE_WINDOW_FAILED: return "Window creation failed";
@@ -238,9 +239,10 @@ puglSetViewHint(PuglView* view, PuglViewHint hint, int value)
{
if (hint < PUGL_NUM_WINDOW_HINTS) {
view->hints[hint] = value;
+ return PUGL_SUCCESS;
}
- return PUGL_SUCCESS;
+ return PUGL_BAD_PARAMETER;
}
PuglStatus