Merge with 2.0-ongoing R2885.
authorDavid Robillard <d@drobilla.net>
Thu, 10 Jan 2008 22:29:26 +0000 (22:29 +0000)
committerDavid Robillard <d@drobilla.net>
Thu, 10 Jan 2008 22:29:26 +0000 (22:29 +0000)
git-svn-id: svn://localhost/ardour2/trunk@2886 d708f5d6-7413-0410-9779-e7cbd77b26cf

libs/gtkmm2ext/fastmeter.cc
svn_revision.h

index 5c76c98e1208074278ac44aa0c7908b9ec0e9484..60fb35b969bccc4a03d0d70e72561a59702efbd0 100644 (file)
@@ -351,7 +351,12 @@ FastMeter::vertical_expose (GdkEventExpose* ev)
        GdkRectangle background;
 
        top_of_meter = (gint) floor (pixheight * current_level);
+       
+       /* reset the height & origin of the rect that needs to show the pixbuf
+        */
+
        pixrect.height = top_of_meter;
+       pixrect.y = pixheight - top_of_meter;
 
        background.x = 0;
        background.y = 0;
@@ -363,12 +368,12 @@ FastMeter::vertical_expose (GdkEventExpose* ev)
                                              intersection.x, intersection.y,
                                              intersection.width, intersection.height);
        }
-       
+
        if (gdk_rectangle_intersect (&pixrect, &ev->area, &intersection)) {
                // draw the part of the meter image that we need. the area we draw is bounded "in reverse" (top->bottom)
                get_window()->draw_pixbuf(get_style()->get_fg_gc(get_state()), pixbuf, 
-                                         intersection.x, pixheight - top_of_meter,
-                                         intersection.x, pixheight - top_of_meter,
+                                         intersection.x, intersection.y,
+                                         intersection.x, intersection.y,
                                          intersection.width, intersection.height,
                                          Gdk::RGB_DITHER_NONE, 0, 0);
        }
index 4bfd4f2ac00282b1bb0f5f6e49ce8cf5c7793139..cb5597281db62defd4ab2e14461ef323e2636b50 100644 (file)
@@ -1,4 +1,4 @@
 #ifndef __ardour_svn_revision_h__
 #define __ardour_svn_revision_h__
-static const char* ardour_svn_revision = "1801";
+static const char* ardour_svn_revision = "2885";
 #endif