From 77f88bd146b1ce10d405c7812bdd2c4d78857bd4 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 22 Jan 2025 18:42:14 -0500 Subject: Factor out puglIsValidSize() --- src/win.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/win.c') 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; } -- cgit v1.2.1