mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-13 05:50:10 +00:00
gdk: Clean up Cairo code
Remove a bunch of code that is not required.
This commit is contained in:
parent
0b6c184eaa
commit
fdb242ac6a
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user