summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2020-04-25 14:52:57 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2020-04-25 14:52:57 +0200
commit22a635734609e4fb657f4715586bc0c71fe50670 (patch)
treeec50f9fe208e12f66df1400b7acd8affbcc0908d
parent413ec2df0d1d2d4eaaf356e5887c48438eed5032 (diff)
WIP: Render points where according to settings.
-rw-r--r--plugingui/powerwidget.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/plugingui/powerwidget.cc b/plugingui/powerwidget.cc
index fe0b68a..675d6db 100644
--- a/plugingui/powerwidget.cc
+++ b/plugingui/powerwidget.cc
@@ -182,12 +182,12 @@ void PowerWidget::Canvas::repaintEvent(GUI::RepaintEvent *repaintEvent)
// draw the fixed nodes of the spline
float rad = radius * width();
p.setColour(GUI::Colour{0.f, 0.7f, .5f, 1.f});
- p.drawFilledCircle(power_map.getFixed0().in*width(),
- height() - power_map.getFixed0().out*height(), rad);
- p.drawFilledCircle(power_map.getFixed1().in*width(),
- height() - power_map.getFixed1().out*height(), rad);
- p.drawFilledCircle(power_map.getFixed2().in*width(),
- height() - power_map.getFixed2().out*height(), rad);
+ p.drawFilledCircle(settings.fixed0_x.load() * width(),
+ height() - settings.fixed0_y.load() * height(), rad);
+ p.drawFilledCircle(settings.fixed1_x.load() * width(),
+ height() - settings.fixed1_y.load() * height(), rad);
+ p.drawFilledCircle(settings.fixed2_x.load() * width(),
+ height() - settings.fixed2_y.load() * height(), rad);
if(enabled)
{