Commit 069b3636 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/D29581
parent b4d588a4
...@@ -38,6 +38,8 @@ static const char description[] = I18N_NOOP("KDiamond, a three-in-a-row game."); ...@@ -38,6 +38,8 @@ static const char description[] = I18N_NOOP("KDiamond, a three-in-a-row game.");
int main(int argc, char **argv) int main(int argc, char **argv)
{ {
// Fixes blurry icons with fractional scaling
QGuiApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
QApplication app(argc, argv); QApplication app(argc, argv);
Kdelibs4ConfigMigrator migrate(QStringLiteral("kdiamond")); Kdelibs4ConfigMigrator migrate(QStringLiteral("kdiamond"));
migrate.setConfigFiles(QStringList() << QStringLiteral("kdiamondrc") << QStringLiteral("kdiamond.notifyrc")); migrate.setConfigFiles(QStringList() << QStringLiteral("kdiamondrc") << QStringLiteral("kdiamond.notifyrc"));
......
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