Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Ebb <matt@mke3.net>2007-09-25 10:36:02 +0400
committerMatt Ebb <matt@mke3.net>2007-09-25 10:36:02 +0400
commit7658066fe95677dfe5ff8aaff9f4f9458a5d01a9 (patch)
treeea4ec875911fc990302b19faf600befe6b908e1f /source/blender/src/interface_draw.c
parent2d429e1d548c2049c2179574a783ea791c7132ed (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.c6
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;