Skip to content

Commit d002681

Browse files
committed
GUI - tweak logo/text scaling on Linux
Linux now matches the macOS scale values rather than Windows. This is mightily hacky still, would be nice to get a better way of rendering this in a similar way on all platforms.
1 parent a0c1a27 commit d002681

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

app/gui/qt/dpi.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,11 @@ inline QSizeF GetDisplayScale()
1010
//super hacky temporary fudge to paper over the
1111
//massive cracks that is the difference between how
1212
//macOS and other platforms handle high DPI monitors
13-
#ifdef __APPLE__
14-
float scale = 96.0f;
13+
14+
#if defined(Q_OS_WIN)
15+
float scale = 96.0f * 1.6f;
1516
#else
16-
float scale = 96.0f * 1.6f;
17+
float scale = 96.0f;
1718
#endif
1819

1920
QSizeF scaleDpi = QSizeF(scale, scale);

0 commit comments

Comments
 (0)