aboutsummaryrefslogtreecommitdiffstats
path: root/src/win.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2022-06-07 21:19:26 -0400
committerDavid Robillard <d@drobilla.net>2022-06-07 21:19:26 -0400
commit5076f59694e33d1099511d20ef72f4fc6cfa87cd (patch)
tree28717b0445b72a5031985ebb6820a7d355609abf /src/win.c
parent6115f80dfb76ffbdeeacab5fc33ea4fb5eb677fd (diff)
downloadpugl-5076f59694e33d1099511d20ef72f4fc6cfa87cd.tar.gz
pugl-5076f59694e33d1099511d20ef72f4fc6cfa87cd.tar.bz2
pugl-5076f59694e33d1099511d20ef72f4fc6cfa87cd.zip
Use a consistent scheme for enum sizes
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 2cf2781..02d5bdb 100644
--- a/src/win.c
+++ b/src/win.c
@@ -1127,7 +1127,7 @@ puglSetSizeHint(PuglView* const view,
const PuglSpan width,
const PuglSpan height)
{
- if ((unsigned)hint > (unsigned)PUGL_MAX_ASPECT) {
+ if ((unsigned)hint >= PUGL_NUM_SIZE_HINTS) {
return PUGL_BAD_PARAMETER;
}