diff options
author | David Robillard <d@drobilla.net> | 2023-05-03 10:40:49 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2023-05-03 10:41:16 -0400 |
commit | 73e46c1b716cbf57e335a907712eb159ce4231fb (patch) | |
tree | 4e10baa404c9381a12d545beaf8d2ce4d5ea97e1 /src/win.c | |
parent | 4ded4f3b2ed4a28eba420c80d1be21f5b76f485c (diff) | |
download | pugl-73e46c1b716cbf57e335a907712eb159ce4231fb.tar.gz pugl-73e46c1b716cbf57e335a907712eb159ce4231fb.tar.bz2 pugl-73e46c1b716cbf57e335a907712eb159ce4231fb.zip |
Avoid double equality comparison
Diffstat (limited to 'src/win.c')
-rw-r--r-- | src/win.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |