diff layer/TimeValueLayer.cpp @ 7:634324c6296e

* switch off antialiasing for dense lines (for speed reasons)
author Chris Cannam
date Thu, 12 Jan 2006 17:45:23 +0000
parents 02aaea1ffaf7
children 8f5b812baaee
line wrap: on
line diff
--- a/layer/TimeValueLayer.cpp	Thu Jan 12 17:19:08 2006 +0000
+++ b/layer/TimeValueLayer.cpp	Thu Jan 12 17:45:23 2006 +0000
@@ -313,10 +313,13 @@
 	if (!localPoints.empty()) illuminateFrame = localPoints.begin()->frame;
     }
 
+    int w = m_model->getResolution() / zoomLevel;
+
     paint.save();
 
-    if (m_plotStyle == PlotLines ||
-	m_plotStyle == PlotCurve) {
+    if (w > 1 &&
+	(m_plotStyle == PlotLines ||
+	 m_plotStyle == PlotCurve)) {
 	paint.setRenderHint(QPainter::Antialiasing, true);
     }
     QPainterPath path;
@@ -330,7 +333,6 @@
 	int y = int(nearbyint(m_view->height() -
 			      ((p.value - min) * m_view->height()) /
 			      (max - min)));
-	int w = m_model->getResolution() / zoomLevel;
 
 	if (w < 1) w = 1;