[gtk] overlay: Blur the clipped node, not clip the blurred node
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk] overlay: Blur the clipped node, not clip the blurred node
- Date: Sun, 13 Jan 2019 07:44:28 +0000 (UTC)
commit 269535c844e9a6fdc1286472e72c0d1f8ff3123c
Author: Timm Bäder <mail baedert org>
Date: Sun Jan 13 06:35:44 2019 +0100
overlay: Blur the clipped node, not clip the blurred node
Blurring is a lot more expensive than clipping, so try to blur less by
clipping first.
gtk/gtkoverlay.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gtk/gtkoverlay.c b/gtk/gtkoverlay.c
index 47a8bb295e..b356aa2ed4 100644
--- a/gtk/gtkoverlay.c
+++ b/gtk/gtkoverlay.c
@@ -728,8 +728,8 @@ gtk_overlay_snapshot (GtkWidget *widget,
gtk_widget_get_allocation (child, &alloc);
graphene_rect_init (&bounds, alloc.x, alloc.y, alloc.width, alloc.height);
- gtk_snapshot_push_clip (snapshot, &bounds);
gtk_snapshot_push_blur (snapshot, blur);
+ gtk_snapshot_push_clip (snapshot, &bounds);
gtk_snapshot_append_node (snapshot, main_widget_node);
gtk_snapshot_pop (snapshot);
gtk_snapshot_pop (snapshot);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]