summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2020-04-25 16:31:39 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2020-04-25 16:31:39 +0200
commitdeffe8cc304de95204fa9192e8d1a12f4a1d26e1 (patch)
tree5769b9360b1966bf9f50a6b04ba5f34b6d5638df
parent642ccefe86f51248b192e086a61ca665bbca3cfc (diff)
WIP: Make 1 pixel steps in line segments.
-rw-r--r--plugingui/powerwidget.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugingui/powerwidget.cc b/plugingui/powerwidget.cc
index c05e0eb..60c056d 100644
--- a/plugingui/powerwidget.cc
+++ b/plugingui/powerwidget.cc
@@ -210,9 +210,9 @@ void PowerWidget::Canvas::repaintEvent(GUI::RepaintEvent *repaintEvent)
p.setColour(GUI::Colour(0.5f, 0.5f, 0.5f, 1.0f));
}
- // draw 64 line segments across the region
+ // Draw very short line segments across the region
std::pair<int, int> old{};
- for(std::size_t x = 0; x < width(); x += width() / 64)
+ for(std::size_t x = 0; x < width(); ++x)
{
int y = power_map.map((float)x / width()) * height();
if(x > 0)