fix expose error for new faders

git-svn-id: svn://localhost/ardour2/trunk@1152 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis
2006-11-21 21:56:43 +00:00
parent 6cd69fb20f
commit 434b459dec

View File

@@ -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);
}