mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-27 06:00:22 +00:00
tests: Don't clip in offscreenbox test
The clipping is unnecessary
This commit is contained in:
parent
b91b0ebbd7
commit
f27b33b40e
@ -598,8 +598,6 @@ gtk_offscreen_box_expose (GtkWidget *widget,
|
||||
|
||||
if (offscreen_box->child2 && gtk_widget_get_visible (offscreen_box->child2))
|
||||
{
|
||||
gint w, h;
|
||||
|
||||
pixmap = gdk_offscreen_window_get_pixmap (offscreen_box->offscreen_window2);
|
||||
child_area = offscreen_box->child2->allocation;
|
||||
|
||||
@ -611,11 +609,6 @@ gtk_offscreen_box_expose (GtkWidget *widget,
|
||||
cairo_rotate (cr, offscreen_box->angle);
|
||||
cairo_translate (cr, -child_area.width / 2, -child_area.height / 2);
|
||||
|
||||
/* clip */
|
||||
gdk_drawable_get_size (pixmap, &w, &h);
|
||||
cairo_rectangle (cr, 0, 0, w, h);
|
||||
cairo_clip (cr);
|
||||
|
||||
/* paint */
|
||||
gdk_cairo_set_source_pixmap (cr, pixmap, 0, 0);
|
||||
cairo_paint (cr);
|
||||
|
Loading…
Reference in New Issue
Block a user