Skip to content

Commit

Permalink
small fix to waveform drawing
Browse files Browse the repository at this point in the history
  • Loading branch information
igagis committed Aug 14, 2024
1 parent 7c82a9b commit c9e9431
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
"name": "(gdb) app",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/out/dbg/bedsidemon",
"args": [],
"program": "${workspaceFolder}/src/out/dbg/bedsidemon-opengles-xorg",
"args": ["--window", "--res-path=res"],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [],
Expand Down
1 change: 1 addition & 0 deletions src/bedsidemon/waveform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ void waveform::push(ruis::real value, ruis::real dt_ms)
auto& pop_path = [&]() -> path& {
if (pop_pos >= this->rect().d.x()) {
pop_pos -= this->rect().d.x();
this->paths[1].points.clear();
return this->paths[0];
}
return this->paths[1];
Expand Down

0 comments on commit c9e9431

Please sign in to comment.