diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2008-01-10 20:52:55 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2008-01-10 20:52:55 +0000 |
commit | 0ea547b9515b5a3cc740697bb1f69da0367ec277 (patch) | |
tree | 6fcda1cdf789a5b494e44902b0de2f79c9943603 | |
parent | 8835f5bc7c2f6a71d055f91cf969e9d0ca6ed5f6 (diff) |
fix drawing of partially obscured fastmeters
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@2882 d708f5d6-7413-0410-9779-e7cbd77b26cf
-rw-r--r-- | libs/gtkmm2ext/fastmeter.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libs/gtkmm2ext/fastmeter.cc b/libs/gtkmm2ext/fastmeter.cc index 8e81954000..ccc0a77606 100644 --- a/libs/gtkmm2ext/fastmeter.cc +++ b/libs/gtkmm2ext/fastmeter.cc @@ -360,7 +360,7 @@ FastMeter::vertical_expose (GdkEventExpose* ev) background.width = pixrect.width; background.height = pixheight - top_of_meter; - if (gdk_rectangle_intersect (&background, &ev->area, &intersection)) { + if (gdk_rectangle_intersect (&background, &ev->area, &intersection)) { get_window()->draw_rectangle (get_style()->get_black_gc(), true, intersection.x, intersection.y, intersection.width, intersection.height); @@ -371,7 +371,7 @@ FastMeter::vertical_expose (GdkEventExpose* ev) 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.width, intersection.height, + intersection.width, pixrect.height, Gdk::RGB_DITHER_NONE, 0, 0); } @@ -405,7 +405,7 @@ FastMeter::horizontal_expose (GdkEventExpose* ev) background.width = pixwidth - right_of_meter; background.height = pixrect.height; - if (gdk_rectangle_intersect (&background, &ev->area, &intersection)) { + if (gdk_rectangle_intersect (&background, &ev->area, &intersection)) { get_window()->draw_rectangle (get_style()->get_black_gc(), true, intersection.x + right_of_meter, intersection.y, intersection.width, intersection.height); @@ -416,7 +416,7 @@ FastMeter::horizontal_expose (GdkEventExpose* ev) get_window()->draw_pixbuf(get_style()->get_fg_gc(get_state()), pixbuf, intersection.x, intersection.y, intersection.x, intersection.y, - intersection.width, intersection.height, + pixrect.width, intersection.height, Gdk::RGB_DITHER_NONE, 0, 0); } |