Commit 02809e94 authored by Matej Mrenica's avatar Matej Mrenica Committed by Yuri Chornoivan
Browse files

Fix blurry icons by adding UseHighDpiPixmaps flag

Summary: When using fractional scaling, icons on the top are blurred. This patch fixes the issue.

Test Plan: No side effects.

Reviewers: #kde_games, yurchor

Reviewed By: yurchor

Subscribers: yurchor, kde-games-devel

Differential Revision: https://phabricator.kde.org/D29649
parent eb190272
......@@ -32,6 +32,8 @@ This is the standard main function of a KDE application simplified for KsirK
int main(int argc, char *argv[])
{
qCDebug(KSIRK_LOG) << "Hello KsirK";
// Fixes blurry icons with fractional scaling
QGuiApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
QApplication app(argc, argv);
KLocalizedString::setApplicationDomain("ksirk");
......
......@@ -45,6 +45,8 @@ static const char *description =
int main(int argc, char *argv[])
{
qCDebug(KSIRKSKINEDITOR_LOG) << "Hello World!";
// Fixes blurry icons with fractional scaling
QGuiApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
QApplication app(argc, argv);
KLocalizedString::setApplicationDomain("ksirkskineditor");
KAboutData aboutData(
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment