diff view/View.cpp @ 950:43888f891733 osx-retina

Some scaling & zoom bits
author Chris Cannam
date Mon, 20 Apr 2015 14:01:39 +0100
parents a5488775f880
children 53e039d99b5d
line wrap: on
line diff
--- a/view/View.cpp	Mon Apr 20 11:00:48 2015 +0100
+++ b/view/View.cpp	Mon Apr 20 14:01:39 2015 +0100
@@ -452,6 +452,8 @@
 void
 View::setZoomLevel(int z)
 {
+    int dpratio = devicePixelRatio();
+    if (z < dpratio) return;
     if (z < 1) z = 1;
     if (m_zoomLevel != int(z)) {
 	m_zoomLevel = z;