diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-07-04 12:49:54 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-07-04 12:49:54 +0400 |
commit | 5553f66eb777ff4ee589b91b42258e5e7a6fbfec (patch) | |
tree | 582f2101f4a88ed0bdf9442075ff76d9688aa5db /source/blender/editors/space_sequencer/sequencer_draw.c | |
parent | c7869f9f85989e35c2c030a78c04a4569e4946ff (diff) |
sequencer
- effects strips now add directly above the strips they operate on (almost always what you want)
- blend mode for new image/movie/scene/color strips is now cross: without this adjusting alpha will fade to black rather then the strip below.
- SEQ_HAS_PATH macro didnt include sound-ram or sound-hd
- meta drawing code has misleading variable names (from own commit).
Diffstat (limited to 'source/blender/editors/space_sequencer/sequencer_draw.c')
-rw-r--r-- | source/blender/editors/space_sequencer/sequencer_draw.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/source/blender/editors/space_sequencer/sequencer_draw.c b/source/blender/editors/space_sequencer/sequencer_draw.c index e50d9b54fa4..e449490516c 100644 --- a/source/blender/editors/space_sequencer/sequencer_draw.c +++ b/source/blender/editors/space_sequencer/sequencer_draw.c @@ -246,31 +246,31 @@ static void drawmeta_contents(Scene *scene, Sequence *seqm, float x1, float y1, for (seq= seqm->seqbase.first; seq; seq= seq->next) { if((seq->startdisp > x2 || seq->enddisp < x1) == 0) { - float ym= (seq->machine - chan_min) / (float)(chan_range) * draw_range; + float y_chan= (seq->machine - chan_min) / (float)(chan_range) * draw_range; + float x1_chan= seq->startdisp; + float x2_chan= seq->enddisp; + float y1_chan, y2_chan; - float x1m= seq->startdisp; - float x2m= seq->enddisp; - float y1m, y2m; - if((seqm->flag & SEQ_MUTE) == 0 && (seq->flag & SEQ_MUTE)) drawmeta_stipple(1); - + get_seq_color3ubv(scene, seq, col); glColor4ubv((GLubyte *)col); - if(x1m < x1) x1m= x1; - if(x2m > x2) x2m= x2; - - y1m= y1 + ym + (draw_height * SEQ_STRIP_OFSBOTTOM); - y2m= y1 + ym + (draw_height * SEQ_STRIP_OFSTOP); + /* clamp within parent sequence strip bounds */ + if(x1_chan < x1) x1_chan= x1; + if(x2_chan > x2) x2_chan= x2; - glRectf(x1m, y1m, x2m, y2m); + y1_chan= y1 + y_chan + (draw_height * SEQ_STRIP_OFSBOTTOM); + y2_chan= y1 + y_chan + (draw_height * SEQ_STRIP_OFSTOP); + + glRectf(x1_chan, y1_chan, x2_chan, y2_chan); UI_GetColorPtrBlendShade3ubv(col, col, col, 0.0, -30); glColor4ubv((GLubyte *)col); - fdrawbox(x1m, y1m, x2m, y2m); - + fdrawbox(x1_chan, y1_chan, x2_chan, y2_chan); + if((seqm->flag & SEQ_MUTE) == 0 && (seq->flag & SEQ_MUTE)) drawmeta_stipple(0); } |