Changeset View
Changeset View
Standalone View
Standalone View
kcms/krdb/krdb.cpp
Show First 20 Lines • Show All 534 Lines • ▼ Show 20 Line(s) | 502 | { | |||
---|---|---|---|---|---|
535 | KConfig _cfgfonts( QStringLiteral("kcmfonts") ); | 535 | KConfig _cfgfonts( QStringLiteral("kcmfonts") ); | ||
536 | KConfigGroup cfgfonts(&_cfgfonts, "General"); | 536 | KConfigGroup cfgfonts(&_cfgfonts, "General"); | ||
537 | 537 | | |||
538 | int dpi; | 538 | int dpi; | ||
539 | 539 | | |||
540 | //even though this sets up the X rdb, we want to use the value the | 540 | //even though this sets up the X rdb, we want to use the value the | ||
541 | //user has set to use when under wayland - as X apps will be scaled by the compositor | 541 | //user has set to use when under wayland - as X apps will be scaled by the compositor | ||
542 | if (KWindowSystem::isPlatformWayland()) { | 542 | if (KWindowSystem::isPlatformWayland()) { | ||
543 | dpi = cfgfonts.readEntry( "forceFontDPIWayland", 0); | 543 | dpi = cfgfonts.readEntry( "forceFontDPIWayland", 96); | ||
544 | } else { | 544 | } else { | ||
545 | dpi = cfgfonts.readEntry( "forceFontDPI", 0); | 545 | dpi = cfgfonts.readEntry( "forceFontDPI", 0); | ||
546 | } | 546 | } | ||
547 | if( dpi != 0 ) | 547 | if( dpi != 0 ) | ||
548 | contents += "Xft.dpi: " + QString::number(dpi) + '\n'; | 548 | contents += "Xft.dpi: " + QString::number(dpi) + '\n'; | ||
549 | else | 549 | else | ||
550 | { | 550 | { | ||
551 | KProcess proc; | 551 | KProcess proc; | ||
▲ Show 20 Lines • Show All 172 Lines • Show Last 20 Lines |