Simplify check for zero sized expose area.

2008-04-30  Richard Hult  <richard@imendio.com>

	* gdk/quartz/GdkQuartzView.c: Simplify check for zero sized expose
	area.

svn path=/trunk/; revision=20056
This commit is contained in:
Richard Hult 2008-04-30 17:50:14 +00:00 committed by Richard Hult
parent ca9a6075e6
commit c33a6699ae
2 changed files with 7 additions and 8 deletions

View File

@ -1,3 +1,8 @@
2008-04-30 Richard Hult <richard@imendio.com>
* gdk/quartz/GdkQuartzView.c: Simplify check for zero sized expose
area.
2008-04-30 Richard Hult <richard@imendio.com>
* gdk/quartz/gdkevents-quartz.c: (_gdk_events_queue): Don't send

View File

@ -64,14 +64,8 @@
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;
}
if (NSEqualRects (rect, NSZeroRect))
return;
GDK_QUARTZ_ALLOC_POOL;