From ed8b199ac50487d7045ecb73c80a7f40726c072b Mon Sep 17 00:00:00 2001 From: Ton Roosendaal Date: Fri, 19 Apr 2013 15:02:37 +0000 Subject: UI drawing fix: Wrongly replaced a "&" with "|" for a define. That made node headers in node editor draw too dark. Also made header for default node not use alpha. In general this drawing is not very good - it gets too transparent and dark. Needs nicer AA function in interface, will be done later. --- source/blender/editors/space_node/node_draw.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'source/blender/editors/space_node/node_draw.c') diff --git a/source/blender/editors/space_node/node_draw.c b/source/blender/editors/space_node/node_draw.c index 1f19374be17..aaf37a1e9ef 100644 --- a/source/blender/editors/space_node/node_draw.c +++ b/source/blender/editors/space_node/node_draw.c @@ -775,9 +775,12 @@ static void node_draw_basis(const bContext *C, ARegion *ar, SpaceNode *snode, bN /* shadow */ node_draw_shadow(snode, node, BASIS_RAD, 1.0f); - /* header */ - if (color_id == TH_NODE) - UI_ThemeColorShade(color_id, -20); + /* header uses color from backdrop, but we make it opaqie */ + if (color_id == TH_NODE) { + float col[3]; + UI_GetThemeColorShade3fv(color_id, -20, col); + glColor4f(col[0], col[1], col[2], 1.0f); + } else UI_ThemeColor(color_id); -- cgit v1.2.3