st: fix rendering of corners in the box-shadow
https://bugzilla.gnome.org/show_bug.cgi?id=689789
This commit is contained in:
parent
ed12c9d611
commit
36fc3a5c96
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user