From 36fc3a5c9671c45ca17e8169826e21ae4f9d5fa8 Mon Sep 17 00:00:00 2001 From: Lionel Landwerlin Date: Thu, 6 Dec 2012 18:05:14 +0000 Subject: [PATCH] st: fix rendering of corners in the box-shadow https://bugzilla.gnome.org/show_bug.cgi?id=689789 --- src/st/st-theme-node-drawing.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/st/st-theme-node-drawing.c b/src/st/st-theme-node-drawing.c index 8d13ab7f0..babce3f0b 100644 --- a/src/st/st-theme-node-drawing.c +++ b/src/st/st-theme-node-drawing.c @@ -1401,6 +1401,15 @@ st_theme_node_render_resources (StThemeNode *node, else node->border_slices_material = COGL_INVALID_HANDLE; + node->corner_material[ST_CORNER_TOPLEFT] = + st_theme_node_lookup_corner (node, ST_CORNER_TOPLEFT); + node->corner_material[ST_CORNER_TOPRIGHT] = + st_theme_node_lookup_corner (node, ST_CORNER_TOPRIGHT); + node->corner_material[ST_CORNER_BOTTOMRIGHT] = + st_theme_node_lookup_corner (node, ST_CORNER_BOTTOMRIGHT); + node->corner_material[ST_CORNER_BOTTOMLEFT] = + st_theme_node_lookup_corner (node, ST_CORNER_BOTTOMLEFT); + /* Use cairo to prerender the node if there is a gradient, or * background image with borders and/or rounded corners, * or large corners, since we can't do those things @@ -1478,15 +1487,6 @@ st_theme_node_render_resources (StThemeNode *node, node->background_texture); } } - - node->corner_material[ST_CORNER_TOPLEFT] = - st_theme_node_lookup_corner (node, ST_CORNER_TOPLEFT); - node->corner_material[ST_CORNER_TOPRIGHT] = - st_theme_node_lookup_corner (node, ST_CORNER_TOPRIGHT); - node->corner_material[ST_CORNER_BOTTOMRIGHT] = - st_theme_node_lookup_corner (node, ST_CORNER_BOTTOMRIGHT); - node->corner_material[ST_CORNER_BOTTOMLEFT] = - st_theme_node_lookup_corner (node, ST_CORNER_BOTTOMLEFT); } static void