aboutsummaryrefslogtreecommitdiffstats
path: root/src/mac.m
diff options
context:
space:
mode:
Diffstat (limited to 'src/mac.m')
-rw-r--r--src/mac.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mac.m b/src/mac.m
index 180db83..b5b617b 100644
--- a/src/mac.m
+++ b/src/mac.m
@@ -1812,7 +1812,7 @@ puglSetPosition(PuglView* const view, const int x, const int y)
PuglStatus
puglSetSize(PuglView* const view, const unsigned width, const unsigned height)
{
- if (width > INT16_MAX || height > INT16_MAX) {
+ if (!puglIsValidSize(width, height)) {
return PUGL_BAD_PARAMETER;
}