Skip to content

Commit

Permalink
Update Gui.h
Browse files Browse the repository at this point in the history
  • Loading branch information
devernay committed Jun 10, 2021
1 parent 6a96771 commit 7467f8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Gui/Gui.h
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,7 @@ GCC_DIAG_SUGGEST_OVERRIDE_ON
HDC screen = GetDC(winId());
FLOAT horizontalDPI = GetDeviceCaps(screen, LOGPIXELSX);
ReleaseDC(0, screen);
return static_cast<qreal>horizontalDPI / 96.f;
return static_cast<qreal>(horizontalDPI) / 96;
}
#elif defined(Q_OS_MAC)
qreal devicePixelRatio() const { return QtMac::devicePixelRatioInternal(this); }
Expand Down

0 comments on commit 7467f8d

Please sign in to comment.