aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2023-05-03 10:40:49 -0400
committerDavid Robillard <d@drobilla.net>2023-05-03 10:41:16 -0400
commit73e46c1b716cbf57e335a907712eb159ce4231fb (patch)
tree4e10baa404c9381a12d545beaf8d2ce4d5ea97e1 /src
parent4ded4f3b2ed4a28eba420c80d1be21f5b76f485c (diff)
downloadpugl-73e46c1b716cbf57e335a907712eb159ce4231fb.tar.gz
pugl-73e46c1b716cbf57e335a907712eb159ce4231fb.tar.bz2
pugl-73e46c1b716cbf57e335a907712eb159ce4231fb.zip
Avoid double equality comparison
Diffstat (limited to 'src')
-rw-r--r--src/win.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/win.c b/src/win.c
index bb5796c..2f54749 100644
--- a/src/win.c
+++ b/src/win.c
@@ -1213,8 +1213,8 @@ adjustedWindowRect(PuglView* const view,
double
puglGetScaleFactor(const PuglView* const view)
{
- return view->impl->scaleFactor ? view->impl->scaleFactor
- : puglWinGetViewScaleFactor(view);
+ return view->impl->scaleFactor > 0.0 ? view->impl->scaleFactor
+ : puglWinGetViewScaleFactor(view);
}
PuglStatus