forked from AuroraMiddleware/gtk
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:
parent
fd8c2c01a9
commit
7639a61116
@ -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:
|
||||
|
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user