Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Games
KBlocks
Commits
e4577577
Commit
e4577577
authored
Apr 02, 2022
by
Nicolas Fella
Browse files
Enable highdpi scaling
This is needed for proper scaling on Windows
parent
a5ab706a
Pipeline
#158414
passed with stage
in 1 minute and 25 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
src/main.cpp
View file @
e4577577
...
...
@@ -340,6 +340,7 @@ int main(int argc, char *argv[])
// Fixes blurry icons with fractional scaling
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
QGuiApplication
::
setAttribute
(
Qt
::
AA_UseHighDpiPixmaps
);
QGuiApplication
::
setAttribute
(
Qt
::
AA_EnableHighDpiScaling
);
#endif
QApplication
app
(
argc
,
argv
);
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment