aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/implementation.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/implementation.c b/src/implementation.c
index d3a6647..4fe6a8a 100644
--- a/src/implementation.c
+++ b/src/implementation.c
@@ -222,11 +222,7 @@ puglSetViewHint(PuglView* view, PuglViewHint hint, int value)
int
puglGetViewHint(const PuglView* view, PuglViewHint hint)
{
- if (hint < PUGL_NUM_VIEW_HINTS) {
- return view->hints[hint];
- }
-
- return PUGL_DONT_CARE;
+ return (hint < PUGL_NUM_VIEW_HINTS) ? view->hints[hint] : PUGL_DONT_CARE;
}
PuglStatus