diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2006-11-21 21:56:43 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2006-11-21 21:56:43 +0000 |
commit | 434b459dec3a886e34dfa0b2b869ba79ff0f69b9 (patch) | |
tree | 671e0b32524476c948b79dad4293dd597718c03b /libs/gtkmm2ext | |
parent | 6cd69fb20faaec7f63fdbc283884ebcb2e6867c7 (diff) |
fix expose error for new faders
git-svn-id: svn://localhost/ardour2/trunk@1152 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/gtkmm2ext')
-rw-r--r-- | libs/gtkmm2ext/pixfader.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libs/gtkmm2ext/pixfader.cc b/libs/gtkmm2ext/pixfader.cc index 42f0567705..aebcd7d1b3 100644 --- a/libs/gtkmm2ext/pixfader.cc +++ b/libs/gtkmm2ext/pixfader.cc @@ -38,8 +38,8 @@ PixFader::PixFader (Glib::RefPtr<Pixbuf> belt, Gtk::Adjustment& adj) view.x = 0; view.y = 0; - view.width = pixbuf->get_width(); - view.height = pixheight / 2; + view.width = pixbuf->get_width(); + view.height = pixheight / 2; unity_y = (int) rint (view.height - (default_value * view.height)); @@ -63,7 +63,7 @@ PixFader::on_expose_event (GdkEventExpose* ev) if (gdk_rectangle_intersect (&view, &ev->area, &intersection)) { get_window()->draw_pixbuf(get_style()->get_fg_gc(get_state()), pixbuf, intersection.x, offset_into_pixbuf + intersection.y, - 0, 0, + intersection.x, intersection.y, intersection.width, intersection.height, Gdk::RGB_DITHER_NONE, 0, 0); } |