Skip to content
Permalink
Browse files

st: fix rendering of corners in the box-shadow

  • Loading branch information
djdeath committed Dec 6, 2012
1 parent ed12c9d commit 36fc3a5c9671c45ca17e8169826e21ae4f9d5fa8
Showing with 9 additions and 9 deletions.
  1. +9 −9 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

0 comments on commit 36fc3a5

Please sign in to comment.
You can’t perform that action at this time.