From 73e46c1b716cbf57e335a907712eb159ce4231fb Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 3 May 2023 10:40:49 -0400 Subject: Avoid double equality comparison --- src/win.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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 -- cgit v1.2.1