gdk: Clean up Cairo code

Remove a bunch of code that is not required.
This commit is contained in:
Benjamin Otte 2010-12-02 12:06:49 +01:00
parent 0b6c184eaa
commit fdb242ac6a

View File

@ -3693,15 +3693,7 @@ gdk_cairo_create (GdkWindow *window)
if (!window->paint_stack)
{
cairo_reset_clip (cr);
cairo_save (cr);
cairo_identity_matrix (cr);
cairo_new_path (cr);
gdk_cairo_region (cr, window->clip_region_with_children);
cairo_restore (cr);
cairo_clip (cr);
}
else
@ -3710,16 +3702,9 @@ gdk_cairo_create (GdkWindow *window)
/* Only needs to clip to region if piggybacking
on an implicit paint */
cairo_reset_clip (cr);
if (paint->uses_implicit)
{
cairo_save (cr);
cairo_identity_matrix (cr);
cairo_new_path (cr);
gdk_cairo_region (cr, paint->region);
cairo_restore (cr);
cairo_clip (cr);
}
}