projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
36c233f
)
shrink waveview zero line to single pixel
author
Paul Davis
<paul@linuxaudiosystems.com>
Wed, 8 Jan 2014 03:51:18 +0000
(22:51 -0500)
committer
Paul Davis
<paul@linuxaudiosystems.com>
Wed, 8 Jan 2014 03:51:18 +0000
(22:51 -0500)
libs/canvas/wave_view.cc
patch
|
blob
|
history
diff --git
a/libs/canvas/wave_view.cc
b/libs/canvas/wave_view.cc
index a3bbd04ab2c66266e1c5691c76455b359981aa1a..f8ec229933825cc013ece622d000829194b80be3 100644
(file)
--- a/
libs/canvas/wave_view.cc
+++ b/
libs/canvas/wave_view.cc
@@
-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 ();
}
}