diff options
author | Campbell Barton <ideasman42@gmail.com> | 2006-01-31 01:31:01 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2006-01-31 01:31:01 +0300 |
commit | 1622f9e569b54f16242a238606c23a4b3ec7223d (patch) | |
tree | dafe85068b86c6157ff2b278627116f599cf97d2 /source/blender/src/drawseq.c | |
parent | 1f691ae3cd0e2fe18838f91a8169b714efaf676b (diff) |
Removed gradients- too intense, just forced all hoz gridlines for now.
Diffstat (limited to 'source/blender/src/drawseq.c')
-rw-r--r-- | source/blender/src/drawseq.c | 36 |
1 files changed, 33 insertions, 3 deletions
diff --git a/source/blender/src/drawseq.c b/source/blender/src/drawseq.c index dc4e6150241..d5063c24941 100644 --- a/source/blender/src/drawseq.c +++ b/source/blender/src/drawseq.c @@ -905,8 +905,10 @@ void drawseqspace(ScrArea *sa, void *spacedata) calc_ipogrid(); - /*Draw Track Gradients */ - i= MAX2(0, ((int)G.v2d->cur.ymin)-1); /*start drawing gradients at the bottom of the screen.*/ + /*Draw Track Gradients Comment out for now do somthing more subtle + start drawing gradients at the bottom of the screen.*/ + /* + i= MAX2(1, ((int)G.v2d->cur.ymin)-1); glShadeModel(GL_SMOOTH); glBegin(GL_QUADS); while (i<G.v2d->cur.ymax) { @@ -920,7 +922,35 @@ void drawseqspace(ScrArea *sa, void *spacedata) } glEnd(); glShadeModel(GL_FLAT); - /* End Draw Track Gradients */ + */ /* End Draw Track Gradients */ + + + /* Quad Stripes ?*/ + /*i= MAX2(1, ((int)G.v2d->cur.ymin)-1); + glBegin(GL_QUADS); + while (i<G.v2d->cur.ymax) { + if (((int)i) & 1) + BIF_ThemeColorShade(TH_BACK, -15); + else + BIF_ThemeColorShade(TH_BACK, -25); + + glVertex2f(G.v2d->cur.xmax, i); + glVertex2f(G.v2d->cur.xmin, i); + glVertex2f(G.v2d->cur.xmin, i+1); + glVertex2f(G.v2d->cur.xmax, i+1); + i+=1.0; + } + glEnd();*/ + + /* Force grid lines instead */ + glBegin(GL_LINES); + while (i<G.v2d->cur.ymax) { + BIF_ThemeColorShade(TH_BACK, -40); + glVertex2f(G.v2d->cur.xmax, i); + glVertex2f(G.v2d->cur.xmin, i); + i+=1.0; + } + glEnd(); draw_ipogrid(); |