mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-27 06:00:22 +00:00
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:
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>
|
||||
|
||||
* gdk/quartz/gdkevents-quartz.c: (_gdk_events_queue): Don't send
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user