summaryrefslogtreecommitdiff
path: root/dgedit/samplesorter.cc
diff options
context:
space:
mode:
Diffstat (limited to 'dgedit/samplesorter.cc')
-rw-r--r--dgedit/samplesorter.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/dgedit/samplesorter.cc b/dgedit/samplesorter.cc
index 5958354..a2ec3dc 100644
--- a/dgedit/samplesorter.cc
+++ b/dgedit/samplesorter.cc
@@ -215,7 +215,9 @@ void SampleSorter::paintEvent(QPaintEvent *event)
if(sel.to == i.value().to && sel.from == i.value().from)
painter.setPen(colPtSel);
else painter.setPen(colPt);
- float x = (i.key()/max)*(float)width();
+ float x = (i.key()/max);
+ x = sqrt(x);
+ x *= (float)width();
drawCircle(painter, x, MAP(x));
i++;
}