aboutsummaryrefslogtreecommitdiffstats
path: root/src/win.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2025-01-22 18:42:14 -0500
committerDavid Robillard <d@drobilla.net>2025-01-22 18:42:14 -0500
commit77f88bd146b1ce10d405c7812bdd2c4d78857bd4 (patch)
tree985979dd02e043b5bc7f635e406b34bd6b3e46e4 /src/win.c
parent44e65f78fca1597471d31a96907d5be465ca1ec1 (diff)
downloadpugl-77f88bd146b1ce10d405c7812bdd2c4d78857bd4.tar.gz
pugl-77f88bd146b1ce10d405c7812bdd2c4d78857bd4.tar.bz2
pugl-77f88bd146b1ce10d405c7812bdd2c4d78857bd4.zip
Factor out puglIsValidSize()
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;
}