Mercurial > hg > svgui
comparison layer/TimeValueLayer.cpp @ 883:33157c3f0e80
Avoid completely smoothing out a curve if it alternates high/low, when zooming out far enough to use lines instead
author | Chris Cannam |
---|---|
date | Thu, 27 Nov 2014 17:39:37 +0000 |
parents | 6c6e34b09688 |
children | 4a578a360011 |
comparison
equal
deleted
inserted
replaced
878:241688360929 | 883:33157c3f0e80 |
---|---|
1149 | 1149 |
1150 // // or | 1150 // // or |
1151 // path.quadTo(x0, y0, (x0 + x1) / 2, (y0 + y1) / 2); | 1151 // path.quadTo(x0, y0, (x0 + x1) / 2, (y0 + y1) / 2); |
1152 | 1152 |
1153 } else { | 1153 } else { |
1154 path.lineTo(x0, y0); | |
1154 path.lineTo((x0 + x1) / 2, (y0 + y1) / 2); | 1155 path.lineTo((x0 + x1) / 2, (y0 + y1) / 2); |
1155 } | 1156 } |
1156 } | 1157 } |
1157 } | 1158 } |
1158 } | 1159 } |