summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorisanae <14251494+isanae@users.noreply.github.com>2020-08-01 11:03:09 -0400
committerisanae <14251494+isanae@users.noreply.github.com>2020-08-01 11:03:09 -0400
commit64ba6cae1e6b74929d88de628bb2915cb9c6f2d2 (patch)
tree1aa52dcd3beda7d2fdc3eb54756e8fc1ebadb03a /src/main.cpp
parentf71accc1ad4bf2b1de91dfa0c3921fbf6c829191 (diff)
revert font scaling:
- users report low quality splash screen - sticking with qt's default is better in the long run - can still use the environment variable revert network timer: - users report error in log every second - was a blind fix anyway, can't reliably reproduce it
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp13
1 files changed, 1 insertions, 12 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 08889018..f008896b 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -905,20 +905,9 @@ int main(int argc, char *argv[])
if (!tempDir.exists())
tempDir.root().mkpath(tempDir.canonicalPath());
-
- // qt 5.14 changed how fraction font scaling works; by default 125% is
- // rounded to 100% and 150% is rounded to 200%, which doesn't make any sense
- //
- // force qt to use the exact scaling value by change the policy to
- // PassThrough
- //
- QGuiApplication::setHighDpiScaleFactorRoundingPolicy(
- Qt::HighDpiScaleFactorRoundingPolicy::PassThrough);
-
- // MO is somewhat high dpi aware
+ //Should allow for better scaling of ui with higher resolution displays
QApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
-
if (argc >= 4) {
std::vector<std::wstring> arg;
auto args = UntouchedCommandLineArguments(2, arg);