From bc62536fac2f2ed378a64f62fc51183a89130ec4 Mon Sep 17 00:00:00 2001 From: Ton Roosendaal Date: Fri, 20 May 2005 16:01:36 +0000 Subject: [PATCH] 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. --- source/blender/src/drawtime.c | 8 +++----- 1 file 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);