diff options
author | Matt Ebb <matt@mke3.net> | 2007-09-25 10:36:02 +0400 |
---|---|---|
committer | Matt Ebb <matt@mke3.net> | 2007-09-25 10:36:02 +0400 |
commit | 7658066fe95677dfe5ff8aaff9f4f9458a5d01a9 (patch) | |
tree | ea4ec875911fc990302b19faf600befe6b908e1f /source/blender/src/interface_draw.c | |
parent | 2d429e1d548c2049c2179574a783ea791c7132ed (diff) |
* Use nice AA lines for curve ui control
Diffstat (limited to 'source/blender/src/interface_draw.c')
-rw-r--r-- | source/blender/src/interface_draw.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source/blender/src/interface_draw.c b/source/blender/src/interface_draw.c index 1a64f28d982..5b7fb4e6248 100644 --- a/source/blender/src/interface_draw.c +++ b/source/blender/src/interface_draw.c @@ -2240,7 +2240,9 @@ static void ui_draw_but_CURVE(uiBut *but) } /* the curve */ - BIF_ThemeColor(TH_TEXT); + BIF_ThemeColorBlend(TH_TEXT, TH_BUT_NEUTRAL, 0.35); + glEnable(GL_LINE_SMOOTH); + glEnable(GL_BLEND); glBegin(GL_LINE_STRIP); if(cuma->table==NULL) @@ -2269,6 +2271,8 @@ static void ui_draw_but_CURVE(uiBut *but) glVertex2f(fx, fy); } glEnd(); + glDisable(GL_LINE_SMOOTH); + glEnable(GL_BLEND); /* the points, use aspect to make them visible on edges */ cmp= cuma->curve; |