diff options
author | Ton Roosendaal <ton@blender.org> | 2005-05-20 20:01:36 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2005-05-20 20:01:36 +0400 |
commit | bc62536fac2f2ed378a64f62fc51183a89130ec4 (patch) | |
tree | 23e0faf7cb07b5553416332a3e0e1f1cca567156 /source/blender/src/drawtime.c | |
parent | b7cc5b790a678a4a379c738525978090e4f2860a (diff) |
Different drawing code for darkened part in TimeLine window, to indicate
the start/end frame. It uses a GL_BLEND which doesnt work nice for darker
backdrops. Now it uses ThemeColorShade() which does it OK.
Diffstat (limited to 'source/blender/src/drawtime.c')
-rw-r--r-- | source/blender/src/drawtime.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/source/blender/src/drawtime.c b/source/blender/src/drawtime.c index d505e888b2b..b01a13e9572 100644 --- a/source/blender/src/drawtime.c +++ b/source/blender/src/drawtime.c @@ -172,10 +172,8 @@ static void draw_markers_time(SpaceTime *stime) static void draw_sfra_efra() { - glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); - glEnable(GL_BLEND); - glColor4ub(0, 0, 0, 25); - + BIF_ThemeColorShade(TH_BACK, -25); + if (G.scene->r.sfra < G.scene->r.efra) { glRectf(G.v2d->cur.xmin, G.v2d->cur.ymin, G.scene->r.sfra, G.v2d->cur.ymax); @@ -184,7 +182,7 @@ static void draw_sfra_efra() glRectf(G.v2d->cur.xmin, G.v2d->cur.ymin, G.v2d->cur.xmax, G.v2d->cur.ymax); } - glColor4ub(0, 0, 0, 90); + BIF_ThemeColorShade(TH_BACK, -60); /* thin lines where the actual frames are */ fdrawline(G.scene->r.sfra, G.v2d->cur.ymin, G.scene->r.sfra, G.v2d->cur.ymax); fdrawline(G.scene->r.efra, G.v2d->cur.ymin, G.scene->r.efra, G.v2d->cur.ymax); |