diff options
author | Ton Roosendaal <ton@blender.org> | 2007-01-26 00:43:49 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2007-01-26 00:43:49 +0300 |
commit | 497b028a33e7395bd2101f26c4ad4678b59d8ae2 (patch) | |
tree | 33a791e933121dd54b35a1a8a9b2ded9ce8b476d /source/blender/src/outliner.c | |
parent | 8de165ff562ccac18b8ff3057797147129a062bf (diff) |
Two fixes:
- Previous fix (commit today) for outliner-selecting and mode disabling
forgot to do this for texture paint.
- outliner: theme color drawing for background was using char with overflow
possibility.
Diffstat (limited to 'source/blender/src/outliner.c')
-rw-r--r-- | source/blender/src/outliner.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/src/outliner.c b/source/blender/src/outliner.c index 6ea41e8c4b5..8bb2797405b 100644 --- a/source/blender/src/outliner.c +++ b/source/blender/src/outliner.c @@ -3176,7 +3176,7 @@ static void outliner_draw_tree(SpaceOops *soops) { TreeElement *te; int starty, startx; - char col[4]; + float col[4]; #ifdef INTERNATIONAL FTF_SetFontSize('l'); @@ -3186,8 +3186,8 @@ static void outliner_draw_tree(SpaceOops *soops) glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); // only once // selection first - BIF_GetThemeColor3ubv(TH_BACK, col); - glColor3ub(col[0]+15, col[1]+20, col[2]+25); + BIF_GetThemeColor3fv(TH_BACK, col); + glColor3f(col[0]+0.06f, col[1]+0.08f, col[2]+0.10f); starty= soops->v2d.tot.ymax-OL_H; outliner_draw_selection(soops, &soops->tree, &starty); |