aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/implementation.c4
-rw-r--r--src/mac.m2
-rw-r--r--src/win.c2
-rw-r--r--src/x11.c2
4 files changed, 5 insertions, 5 deletions
diff --git a/src/implementation.c b/src/implementation.c
index e7835f6..166aebd 100644
--- a/src/implementation.c
+++ b/src/implementation.c
@@ -28,7 +28,7 @@ puglStrerror(const PuglStatus status)
case PUGL_REALIZE_FAILED: return "View creation failed";
case PUGL_SET_FORMAT_FAILED: return "Failed to set pixel format";
case PUGL_CREATE_CONTEXT_FAILED: return "Failed to create drawing context";
- case PUGL_UNSUPPORTED_TYPE: return "Unsupported data type";
+ case PUGL_UNSUPPORTED: return "Unsupported operation";
}
// clang-format on
@@ -489,7 +489,7 @@ puglSetInternalClipboard(PuglView* const view,
const size_t len)
{
if (type && !!strcmp(type, "text/plain")) {
- return PUGL_UNSUPPORTED_TYPE;
+ return PUGL_UNSUPPORTED;
}
puglSetBlob(&view->clipboard, data, len);
diff --git a/src/mac.m b/src/mac.m
index 865355a..1040aa7 100644
--- a/src/mac.m
+++ b/src/mac.m
@@ -1204,7 +1204,7 @@ puglSendEvent(PuglView* view, const PuglEvent* event)
return PUGL_SUCCESS;
}
- return PUGL_UNSUPPORTED_TYPE;
+ return PUGL_UNSUPPORTED;
}
#ifndef PUGL_DISABLE_DEPRECATED
diff --git a/src/win.c b/src/win.c
index 737f843..40a5cb7 100644
--- a/src/win.c
+++ b/src/win.c
@@ -813,7 +813,7 @@ puglSendEvent(PuglView* view, const PuglEvent* event)
return PUGL_SUCCESS;
}
- return PUGL_UNSUPPORTED_TYPE;
+ return PUGL_UNSUPPORTED;
}
#ifndef PUGL_DISABLE_DEPRECATED
diff --git a/src/x11.c b/src/x11.c
index ca23a76..046211c 100644
--- a/src/x11.c
+++ b/src/x11.c
@@ -989,7 +989,7 @@ puglSendEvent(PuglView* const view, const PuglEvent* const event)
: PUGL_UNKNOWN_ERROR;
}
- return PUGL_UNSUPPORTED_TYPE;
+ return PUGL_UNSUPPORTED;
}
#ifndef PUGL_DISABLE_DEPRECATED