diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2010-05-31 23:53:40 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2010-05-31 23:53:40 +0200 |
commit | 3af01d702411c2f724c87417a4b3bd99d7e8d53e (patch) | |
tree | 38670385b7ec14517a7282707311456f6787aafb | |
parent | Merge commit 'refs/merge-requests/126' of git://gitorious.org/rekonq/mainline... (diff) | |
download | rekonq-3af01d702411c2f724c87417a4b3bd99d7e8d53e.tar.xz |
Minor change to better debug fonts DPI..
-rw-r--r-- | src/application.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/application.cpp b/src/application.cpp index 732bb273..9620feb8 100644 --- a/src/application.cpp +++ b/src/application.cpp @@ -447,10 +447,12 @@ void Application::updateConfiguration() int defaultFontSize = ReKonfig::defaultFontSize(); int minimumFontSize = ReKonfig::minFontSize(); - float toPix = mainWindow()->currentTab()->view()->logicalDpiY()/72.0; - - if (toPix < 96.0/72.0) - toPix = 96.0/72.0; + int logDpiY = mainWindow()->currentTab()->view()->logicalDpiY(); + kDebug() << "Logical Dot per Inch Y: " << logDpiY; + + float toPix = (logDpiY < 96.0) + ? 96.0/72.0 + : logDpiY/72.0 ; defaultSettings->setFontSize(QWebSettings::DefaultFontSize, qRound(defaultFontSize * toPix) ); defaultSettings->setFontSize(QWebSettings::MinimumFontSize, qRound(minimumFontSize * toPix) ); |