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:

committed by
Richard Hult

parent
ca9a6075e6
commit
c33a6699ae
@ -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>
|
2008-04-30 Richard Hult <richard@imendio.com>
|
||||||
|
|
||||||
* gdk/quartz/gdkevents-quartz.c: (_gdk_events_queue): Don't send
|
* gdk/quartz/gdkevents-quartz.c: (_gdk_events_queue): Don't send
|
||||||
|
@ -64,14 +64,8 @@
|
|||||||
if (!(private->event_mask & GDK_EXPOSURE_MASK))
|
if (!(private->event_mask & GDK_EXPOSURE_MASK))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
/* For some reason, we occasionally get draw requests for zero sized rects
|
if (NSEqualRects (rect, NSZeroRect))
|
||||||
* at 0,0, just ignore those.
|
return;
|
||||||
*/
|
|
||||||
if (rect.origin.x == 0 && rect.origin.y == 0 &&
|
|
||||||
rect.size.width == 0 && rect.size.height == 0)
|
|
||||||
{
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
GDK_QUARTZ_ALLOC_POOL;
|
GDK_QUARTZ_ALLOC_POOL;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user