[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [kxstitch/frameworks] src: Use logical DPI rather than physical
From: Steve Allewell <steve.allewell () gmail ! com>
Date: 2015-10-31 20:19:29
Message-ID: E1Zsccb-00072y-En () scm ! kde ! org
[Download RAW message or body]
Git commit 2b58792845f4ad2db417c9278d428046338587bb by Steve Allewell.
Committed on 31/10/2015 at 19:13.
Pushed by sallewell into branch 'frameworks'.
Use logical DPI rather than physical
Discovery of difference in physical dpi X and Y when using vmware to
run OpenSuSE Tumbleweed KF5 resulting in distorted editor view.
M +2 -2 src/Editor.cpp
http://commits.kde.org/kxstitch/2b58792845f4ad2db417c9278d428046338587bb
diff --git a/src/Editor.cpp b/src/Editor.cpp
index 5dfd1cb..7bd87bb 100644
--- a/src/Editor.cpp
+++ b/src/Editor.cpp
@@ -372,8 +372,8 @@ bool Editor::zoom(double factor)
m_zoomFactor = factor;
- double dpiX = physicalDpiX();
- double dpiY = physicalDpiY();
+ double dpiX = logicalDpiX();
+ double dpiY = logicalDpiY();
bool clothCountUnitsInches = \
(static_cast<Configuration::EnumEditor_ClothCountUnits::type>(m_document->property("clothCountUnits").toInt()) \
== Configuration::EnumEditor_ClothCountUnits::Inches);
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic