* Use nice AA lines for curve ui control
authorMatt Ebb <matt@mke3.net>
Tue, 25 Sep 2007 06:36:02 +0000 (06:36 +0000)
committerMatt Ebb <matt@mke3.net>
Tue, 25 Sep 2007 06:36:02 +0000 (06:36 +0000)
source/blender/src/interface_draw.c

index 1a64f28d9828bbb8a527dee2da534217399c59cb..5b7fb4e62483cf3b04d0efdb3cc6239c0e40643a 100644 (file)
@@ -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;