[SCM] calf/master: some bugfixes

js at users.alioth.debian.org js at users.alioth.debian.org
Tue May 7 15:41:01 UTC 2013


The following commit has been merged in the master branch:
commit c5a2e34364f448c4317ee638e9b1ab95b95c806b
Author: Markus Schmidt <schmidt at boomshop.net>
Date:   Tue Mar 6 12:41:29 2012 +0100

    some bugfixes

diff --git a/src/calf/giface.h b/src/calf/giface.h
index 460b77a..75d2a2f 100644
--- a/src/calf/giface.h
+++ b/src/calf/giface.h
@@ -164,7 +164,7 @@ struct line_graph_iface
     /// @param context cairo context to adjust (for multicolour graphs etc.)
     /// @retval true graph data was returned; subindex+1 graph may or may not be available
     /// @retval false graph data was not returned; subindex+1 graph does not exist either
-    virtual bool get_graph(int index, int subindex, float *data, int points, cairo_iface *context, int *mode) const { return false; }
+    virtual bool get_graph(int index, int subindex, float *data, int points, cairo_iface *context, int *mode = 0) const { return false; }
 
     /// Obtain subindex'th dot of parameter 'index'
     /// @param index parameter/dot number (usually tied to particular plugin control port)
diff --git a/src/custom_ctl.cpp b/src/custom_ctl.cpp
index 11b0fe0..ea83a79 100644
--- a/src/custom_ctl.cpp
+++ b/src/custom_ctl.cpp
@@ -86,6 +86,7 @@ calf_line_graph_draw_graph( cairo_t *c, float *data, int sx, int sy, int mode )
         y = (int)(oy + sy / 2 - (sy / 2 - 1) * data[i]);
         switch(mode) {
             case 0:
+            default:
                 // we want to draw a line
                 if (i and (data[i] < INFINITY or i == sx - 1)) {
                     cairo_line_to(c, ox + i, y);

-- 
calf audio plugins packaging



More information about the pkg-multimedia-commits mailing list