Ignore drawRect calls with zero sized areas at (0, 0), patch from Paul

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
This commit is contained in:
Richard Hult 2007-12-10 19:38:47 +00:00 committed by Richard Hult
parent fd8c2c01a9
commit 7639a61116
2 changed files with 14 additions and 0 deletions

View File

@ -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:

View File

@ -64,6 +64,15 @@
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];