diff options
author | Timm Bäder <mail@baedert.org> | 2018-03-30 23:32:19 +0200 |
---|---|---|
committer | Timm Bäder <mail@baedert.org> | 2018-03-31 14:45:01 +0200 |
commit | 08296b8aeed09a45bf73d2889067ef78f4cba1e1 (patch) | |
tree | 0a666a3f4e79c1734970684c24f8fb8d6fe573ad /gsk/gl | |
parent | db223983615d3b2c21cf9a5b255b8199a254cba3 (diff) | |
download | gtk+-08296b8aeed09a45bf73d2889067ef78f4cba1e1.tar.gz |
gl renderer: Don't highlight cairo nodes as fallback
Diffstat (limited to 'gsk/gl')
-rw-r--r-- | gsk/gl/gskglrenderer.c | 11 |
1 files 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); |