shrink waveview zero line to single pixel
authorPaul Davis <paul@linuxaudiosystems.com>
Wed, 8 Jan 2014 03:51:18 +0000 (22:51 -0500)
committerPaul Davis <paul@linuxaudiosystems.com>
Wed, 8 Jan 2014 03:51:18 +0000 (22:51 -0500)
libs/canvas/wave_view.cc

index a3bbd04ab2c66266e1c5691c76455b359981aa1a..f8ec229933825cc013ece622d000829194b80be3 100644 (file)
@@ -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 ();
        }
 }