[SCM] calf/master: + VU Meter: fix pixel off-by-ones

js at users.alioth.debian.org js at users.alioth.debian.org
Tue May 7 15:39:10 UTC 2013


The following commit has been merged in the master branch:
commit 096f3677b197506f44d978f3ab46d7a06da562c5
Author: Krzysztof Foltman <wdev at foltman.com>
Date:   Sun Jan 25 13:28:15 2009 +0000

    + VU Meter: fix pixel off-by-ones

diff --git a/src/custom_ctl.cpp b/src/custom_ctl.cpp
index 4c01e92..2b599b6 100644
--- a/src/custom_ctl.cpp
+++ b/src/custom_ctl.cpp
@@ -427,7 +427,7 @@ calf_vumeter_expose (GtkWidget *widget, GdkEventExpose *event)
 	    cairo_line_to(cache_cr, x, oy );
 	    cairo_stroke(cache_cr);
 	}
-	cairo_destroy( cache_cr );
+        cairo_destroy( cache_cr );
     }
 
     cairo_set_source_surface( c, vu->cache_surface, 0,0 );
@@ -435,9 +435,9 @@ calf_vumeter_expose (GtkWidget *widget, GdkEventExpose *event)
     cairo_set_source_rgba( c, 0,0,0, 0.5 );
 
     if( vu->mode == VU_MONOCHROME_REVERSE )
-	cairo_rectangle( c, ox,oy, vu->value * (sx-ox), sy-oy );
+        cairo_rectangle( c, ox,oy, vu->value * (sx-ox) + 1, sy-oy+1 );
     else
-	cairo_rectangle( c, vu->value * (sx-ox),oy, sx-ox, sy-oy );
+        cairo_rectangle( c, ox + vu->value * (sx-ox), oy, sx-ox+1, sy-oy+1 );
 
     cairo_fill( c );
 

-- 
calf audio plugins packaging



More information about the pkg-multimedia-commits mailing list