mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-30 17:03:06 +01:00
shrink waveview zero line to single pixel
This commit is contained in:
parent
36c233fe6c
commit
8fa54cd1d9
1 changed files with 4 additions and 2 deletions
|
|
@ -390,9 +390,11 @@ WaveView::draw_image (PeakData* _peaks, int n_peaks) const
|
|||
}
|
||||
|
||||
if (show_zero_line()) {
|
||||
|
||||
set_source_rgba (context, _zero_color);
|
||||
context->move_to (0, position (0.0));
|
||||
context->line_to (n_peaks, position (0.0));
|
||||
context->set_line_width (1.0);
|
||||
context->move_to (0, position (0.0) + 0.5);
|
||||
context->line_to (n_peaks, position (0.0) + 0.5);
|
||||
context->stroke ();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue