From 44a2a49f312be981934acd5b4bbabb5799fbbdf4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Sun, 13 Jan 2019 07:47:53 +0100 Subject: [PATCH] overlay: Directly create cairo_region Instead of doing a cairo_region_create + union, just pass the rect directly to cairo_region_create_rectangle --- gtk/gtkoverlay.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gtk/gtkoverlay.c b/gtk/gtkoverlay.c index b356aa2ed4..82cdb1fc63 100644 --- a/gtk/gtkoverlay.c +++ b/gtk/gtkoverlay.c @@ -740,8 +740,7 @@ gtk_overlay_snapshot (GtkWidget *widget, rect.x = rect.y = 0; rect.width = main_alloc.width; rect.height = main_alloc.height; - clip = cairo_region_create (); - cairo_region_union_rectangle (clip, &rect); + clip = cairo_region_create_rectangle (&rect); } cairo_region_subtract_rectangle (clip, (cairo_rectangle_int_t *)&alloc); }