mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-08-08 14:42:33 -04:00
fine tune waveform and ook again (#2322)
This commit is contained in:
parent
abd6177303
commit
bea9f444c6
3 changed files with 33 additions and 6 deletions
|
@ -2681,9 +2681,9 @@ void Waveform::paint(Painter& painter) {
|
|||
x = prev_x + x_inc;
|
||||
h /= 2;
|
||||
|
||||
prev_y = y_offset + h + (*(data_start++) * y_scale);
|
||||
prev_y = y_offset + h - (*(data_start++) * y_scale);
|
||||
for (n = 1; n < length_; n++) {
|
||||
y = y_offset + h + (*(data_start++) * y_scale);
|
||||
y = y_offset + h - (*(data_start++) * y_scale);
|
||||
display.draw_line({prev_x, prev_y}, {(Coord)x, y}, color_);
|
||||
|
||||
prev_x = x;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue