[gtk] gl renderer: Don't highlight cairo nodes as fallback
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk] gl renderer: Don't highlight cairo nodes as fallback
- Date: Sat, 31 Mar 2018 12:46:48 +0000 (UTC)
commit 08296b8aeed09a45bf73d2889067ef78f4cba1e1
Author: Timm Bäder <mail baedert org>
Date: Fri Mar 30 23:32:19 2018 +0200
gl renderer: Don't highlight cairo nodes as fallback
gsk/gl/gskglrenderer.c | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)
---
diff --git a/gsk/gl/gskglrenderer.c b/gsk/gl/gskglrenderer.c
index d903a20ba0..697047e590 100644
--- a/gsk/gl/gskglrenderer.c
+++ b/gsk/gl/gskglrenderer.c
@@ -288,10 +288,13 @@ render_fallback_node (GskGLRenderer *self,
cairo_restore (cr);
#if HIGHLIGHT_FALLBACK
- cairo_move_to (cr, 0, 0);
- cairo_rectangle (cr, 0, 0, node->bounds.size.width, node->bounds.size.height);
- cairo_set_source_rgba (cr, 1, 0, 0, 1);
- cairo_stroke (cr);
+ if (gsk_render_node_get_node_type (node) != GSK_CAIRO_NODE)
+ {
+ cairo_move_to (cr, 0, 0);
+ cairo_rectangle (cr, 0, 0, node->bounds.size.width, node->bounds.size.height);
+ cairo_set_source_rgba (cr, 1, 0, 0, 1);
+ cairo_stroke (cr);
+ }
#endif
cairo_destroy (cr);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]