forked from AuroraMiddleware/gtk
Don't flush if we're inside a begin_paint/end_paint pair.
2006-04-12 Anders Carlsson <andersca@imendio.com> * gdk/quartz/gdkdrawable-quartz.c: (_gdk_quartz_drawable_release_context): Don't flush if we're inside a begin_paint/end_paint pair. * gdk/quartz/gdkwindow-quartz.c: (gdk_window_impl_quartz_end_paint): Free clip region here.
This commit is contained in:
parent
e0e24d0313
commit
3d1e71073e
10
ChangeLog
10
ChangeLog
@ -1,3 +1,13 @@
|
|||||||
|
2006-04-12 Anders Carlsson <andersca@imendio.com>
|
||||||
|
|
||||||
|
* gdk/quartz/gdkdrawable-quartz.c:
|
||||||
|
(_gdk_quartz_drawable_release_context):
|
||||||
|
Don't flush if we're inside a begin_paint/end_paint pair.
|
||||||
|
|
||||||
|
* gdk/quartz/gdkwindow-quartz.c:
|
||||||
|
(gdk_window_impl_quartz_end_paint):
|
||||||
|
Free clip region here.
|
||||||
|
|
||||||
2006-04-12 Matthias Clasen <mclasen@redhat.com>
|
2006-04-12 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
* gtk/gtkuimanager.c (start_element_handler): Don't pass
|
* gtk/gtkuimanager.c (start_element_handler): Don't pass
|
||||||
|
@ -1,3 +1,13 @@
|
|||||||
|
2006-04-12 Anders Carlsson <andersca@imendio.com>
|
||||||
|
|
||||||
|
* gdk/quartz/gdkdrawable-quartz.c:
|
||||||
|
(_gdk_quartz_drawable_release_context):
|
||||||
|
Don't flush if we're inside a begin_paint/end_paint pair.
|
||||||
|
|
||||||
|
* gdk/quartz/gdkwindow-quartz.c:
|
||||||
|
(gdk_window_impl_quartz_end_paint):
|
||||||
|
Free clip region here.
|
||||||
|
|
||||||
2006-04-12 Matthias Clasen <mclasen@redhat.com>
|
2006-04-12 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
* gtk/gtkuimanager.c (start_element_handler): Don't pass
|
* gtk/gtkuimanager.c (start_element_handler): Don't pass
|
||||||
|
@ -654,7 +654,8 @@ _gdk_quartz_drawable_release_context (GdkDrawable *drawable, CGContextRef contex
|
|||||||
CGContextRestoreGState (context);
|
CGContextRestoreGState (context);
|
||||||
CGContextSetAllowsAntialiasing (context, TRUE);
|
CGContextSetAllowsAntialiasing (context, TRUE);
|
||||||
|
|
||||||
if (impl->in_paint_rect_count == 0)
|
if (impl->in_paint_rect_count == 0 &&
|
||||||
|
impl->begin_paint_count == 0)
|
||||||
CGContextFlush (context);
|
CGContextFlush (context);
|
||||||
|
|
||||||
[impl->view unlockFocus];
|
[impl->view unlockFocus];
|
||||||
|
@ -172,6 +172,12 @@ gdk_window_impl_quartz_end_paint (GdkPaintable *paintable)
|
|||||||
GdkWindowImplQuartz *impl = GDK_WINDOW_IMPL_QUARTZ (paintable);
|
GdkWindowImplQuartz *impl = GDK_WINDOW_IMPL_QUARTZ (paintable);
|
||||||
|
|
||||||
impl->begin_paint_count --;
|
impl->begin_paint_count --;
|
||||||
|
|
||||||
|
if (impl->begin_paint_count == 0)
|
||||||
|
{
|
||||||
|
gdk_region_destroy (impl->paint_clip_region);
|
||||||
|
impl->paint_clip_region = NULL;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
Loading…
Reference in New Issue
Block a user