2007-12-10 Richard Hult <richard@imendio.com>
* gdk/quartz/GdkQuartzView.c: Ignore drawRect calls with zero
sized areas at (0, 0), patch from Paul Davis.
svn path=/trunk/; revision=19145
+2007-12-10 Richard Hult <richard@imendio.com>
+
+ * gdk/quartz/GdkQuartzView.c: Ignore drawRect calls with zero
+ sized areas at (0, 0), patch from Paul Davis.
+
2007-12-10 Richard Hult <richard@imendio.com>
* gdk/quartz/gdkprivate-quartz.h:
if (!(private->event_mask & GDK_EXPOSURE_MASK))
return;
+ /* For some reason, we occasionally get draw requests for zero sized rects
+ * at 0,0, just ignore those.
+ */
+ if (rect.origin.x == 0 && rect.origin.y == 0 &&
+ rect.size.width == 0 && rect.size.height == 0)
+ {
+ return;
+ }
+
GDK_QUARTZ_ALLOC_POOL;
[self getRectsBeingDrawn:&drawn_rects count:&count];