* ProtoView first tests

* Imp

* fix, reset
This commit is contained in:
Totoo 2024-07-29 07:45:56 +02:00 committed by GitHub
parent 96a60e82bc
commit 9211975868
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
17 changed files with 669 additions and 7 deletions

View file

@ -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;