]> Pileus Git - ~andy/gtk/commitdiff
Ignore drawRect calls with zero sized areas at (0, 0), patch from Paul
authorRichard Hult <richard@imendio.com>
Mon, 10 Dec 2007 19:38:47 +0000 (19:38 +0000)
committerRichard Hult <rhult@src.gnome.org>
Mon, 10 Dec 2007 19:38:47 +0000 (19:38 +0000)
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

ChangeLog
gdk/quartz/GdkQuartzView.c

index 338d50b4783f918e9b5a34eaa8eb5c2d382fd69b..3f4b7e2e2aadf668303231c011dc206748a01487 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+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: 
index 005213432106682fe890d30ca06f4db2e020e830..1521b160575e6ae45433c59cd64a5ad63f5c44f2 100644 (file)
   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];