aboutsummaryrefslogtreecommitdiffstats
path: root/src/win.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/win.c')
-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