diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2020-03-07 21:46:19 +0100 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2020-04-09 16:44:42 +0200 |
commit | d521dd29b038472aa1d2269def96fdf6663cf1b0 (patch) | |
tree | 77bcf64f657b3a099b1579700695925618d7b748 /plugingui/knob.cc | |
parent | cf49b305a0c9e10a8b08ac626019f1502c5f12ee (diff) |
WIP: Experimental highlight stretching.
Diffstat (limited to 'plugingui/knob.cc')
-rw-r--r-- | plugingui/knob.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugingui/knob.cc b/plugingui/knob.cc index 25200a7..d61abac 100644 --- a/plugingui/knob.cc +++ b/plugingui/knob.cc @@ -204,7 +204,7 @@ void Knob::repaintEvent(RepaintEvent* repaintEvent) sprintf(buf, "%.2f", current_value * range + minimum); } p.drawText(center_x - font.textWidth(buf) / 2 + 1, - center_y + font.textHeight(buf) / 2 + 1, font, buf); + center_y + font.textHeight(buf) / 2 + 1, font, buf); } // Make it start from 20% and stop at 80% |