mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-08-08 14:42:33 -04:00
parent
96a60e82bc
commit
9211975868
17 changed files with 669 additions and 7 deletions
|
@ -2630,13 +2630,13 @@ void Waveform::paint(Painter& painter) {
|
|||
const float y_scale = (float)(h - 1) / 65536.0;
|
||||
int16_t* data_start = data_ + offset_;
|
||||
|
||||
// Clear
|
||||
painter.fill_rectangle_unrolled8(screen_rect(), Theme::getInstance()->bg_darkest->background);
|
||||
|
||||
if (!length_) return;
|
||||
|
||||
x_inc = (float)screen_rect().size().width() / length_;
|
||||
|
||||
// Clear
|
||||
painter.fill_rectangle_unrolled8(screen_rect(), Theme::getInstance()->bg_darkest->background);
|
||||
|
||||
if (digital_) {
|
||||
// Digital waveform: each value is an horizontal line
|
||||
x = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue