[gnome-shell] st: fix rendering of corners in the box-shadow
- From: Lionel Landwerlin <llandwerlin src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] st: fix rendering of corners in the box-shadow
- Date: Thu, 6 Dec 2012 18:43:23 +0000 (UTC)
commit 36fc3a5c9671c45ca17e8169826e21ae4f9d5fa8
Author: Lionel Landwerlin <llandwerlin gmail com>
Date: Thu Dec 6 18:05:14 2012 +0000
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 files changed, 9 insertions(+), 9 deletions(-)
---
diff --git a/src/st/st-theme-node-drawing.c b/src/st/st-theme-node-drawing.c
index 8d13ab7..babce3f 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]