+Wed Oct 25 15:17:38 2006 John Ellis <johne@verizon.net>
+
+ * pixbuf-renderer.c (pixbuf_renderer_scroll): Fix long standing bug
+ where obstructed portions of an image were not always generating an
+ expose event when scrolling the image.
+
Mon Oct 23 05:34:29 2006 John Ellis <johne@verizon.net>
* img-view.c, layout_image.c, layout_util.c, pan-view.c: Make F11 also
w, h,
pr->dither_quality, it->x + x, it->y + y);
}
+
+#if 0
+ /* enable this line for debugging the edges of tiles */
+ gdk_draw_rectangle(it->pixmap, box->style->white_gc,
+ FALSE, 0, 0, it->w, it->h);
+#endif
}
gint x2, y2;
GtkWidget *box;
GdkGC *gc;
+ GdkEvent *event;
if (x_off < 0)
{
pr->x_scroll, y_off > 0 ? pr->y_scroll + (pr->vis_height - h) : pr->y_scroll,
pr->vis_width, h, TRUE, TILE_RENDER_ALL, FALSE, FALSE);
}
+
+ /* process exposures here, "expose_event" seems to miss a few with obstructed windows */
+ while ((event = gdk_event_get_graphics_expose(box->window)) != NULL)
+ {
+ pixbuf_renderer_paint(pr, &event->expose.area);
+
+ if (event->expose.count == 0)
+ {
+ gdk_event_free(event);
+ break;
+ }
+ gdk_event_free(event);
+ }
}
}