aboutsummaryrefslogtreecommitdiffstats
path: root/src/win.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/win.c')
-rw-r--r--src/win.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/win.c b/src/win.c
index ed18a39..1efc9a2 100644
--- a/src/win.c
+++ b/src/win.c
@@ -1326,7 +1326,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;
}