- GdkRectangle background;
-
- pixrect.height = display_height ();
-
- background.x = 0;
- background.y = 0;
- background.width = pixrect.width;
- background.height = pixheight - pixrect.height;
-
- if (gdk_rectangle_intersect (&background, &ev->area, &intersection)) {
- get_window()->draw_pixbuf (get_style()->get_fg_gc (get_state()), base_pixbuf,
- intersection.x, intersection.y,
- 0, 0,
- intersection.width, intersection.height,
- Gdk::RGB_DITHER_NONE, 0, 0);
-
- }
-
- /* recompute the height of the handle area to use X Window's top->bottom coordinate
- system.
- */
+ int dh = display_height ();
+ int offset_into_pixbuf = (int) floor (view.height / ((float) view.height / dh));