From eb50a5dd411e0ec69e73ad6cae33c4c64bceb63c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Stadler?= Date: Wed, 14 Nov 2007 10:44:08 +0200 Subject: [PATCH] If the indicator in the frequency display is just 1px wide, don't use transparency --- debug-viewer/GstDebugViewer/Plugins/LineFrequency.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/debug-viewer/GstDebugViewer/Plugins/LineFrequency.py b/debug-viewer/GstDebugViewer/Plugins/LineFrequency.py index 4b67dbcab1..a2c9f697b5 100644 --- a/debug-viewer/GstDebugViewer/Plugins/LineFrequency.py +++ b/debug-viewer/GstDebugViewer/Plugins/LineFrequency.py @@ -134,13 +134,14 @@ class LineFrequencyWidget (gtk.DrawingArea): x, y, w, h = self.get_allocation () line_width = position2 - position1 - ctx.set_source_rgba (1., 0., 0., .5) if line_width <= 1: + ctx.set_source_rgb (1., 0., 0.) ctx.set_line_width (1.) ctx.move_to (position1 + .5, 0) ctx.line_to (position1 + .5, h) ctx.stroke () else: + ctx.set_source_rgba (1., 0., 0., .5) ctx.rectangle (position1, 0, line_width, h) ctx.fill ()