[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdegraphics/kviewshell/shell
From:       Wilfried Huss <Wilfried.Huss () gmx ! at>
Date:       2006-10-19 19:30:47
Message-ID: 1161286247.618724.20681.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 597259 by whuss:

Port of commit 596870:

Another fix for displays with different horizontal and vertical dpi-settings.
This time the zoom in presentation mode.

 M  +8 -0      presentationwidget.cpp  


--- trunk/KDE/kdegraphics/kviewshell/shell/presentationwidget.cpp #597258:597259
@@ -473,6 +473,14 @@
 
         double zoomWidth = pageSize.zoomForWidth(m_width, dpix);
         double zoomHeight = pageSize.zoomForHeight(m_height, dpiy);
+
+        if (dataModel->preferences()->rotation() == KVSPrefs::EnumRotation::Landscape ||
+          dataModel->preferences()->rotation() == KVSPrefs::EnumRotation::Seascape)
+        {
+          zoomWidth = pageSize.zoomForWidth(m_width, dpiy);
+          zoomHeight = pageSize.zoomForHeight(m_height, dpix);
+        }
+
         double zoom = qMin(zoomWidth, zoomHeight);
 
         dataModel->setResolution(dpix * zoom);
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic