diff options
author | Peter Schlaile <peter@schlaile.de> | 2007-10-22 00:05:01 +0400 |
---|---|---|
committer | Peter Schlaile <peter@schlaile.de> | 2007-10-22 00:05:01 +0400 |
commit | af03bbe412f44a2a38b64e441454faec7c4d3c77 (patch) | |
tree | 2a3e8219e818496130902273d4b5733217a56a81 /source/blender/src/drawseq.c | |
parent | 477a8c30fa46bf4832d590e957f6c842ed874562 (diff) |
== Sequencer ==
Peach request: display last mapped frame in status bar of speed control
effect. (To come: auto-resize based on this information)
Diffstat (limited to 'source/blender/src/drawseq.c')
-rw-r--r-- | source/blender/src/drawseq.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/source/blender/src/drawseq.c b/source/blender/src/drawseq.c index 9f33995f136..cac8b0d433e 100644 --- a/source/blender/src/drawseq.c +++ b/source/blender/src/drawseq.c @@ -987,6 +987,20 @@ static void draw_extra_seqinfo(void) glRasterPos3f(xco, yco, 0.0); BMF_DrawString(G.font, str); } + else if(last_seq->type == SEQ_SPEED) { + SpeedControlVars * vars = + (SpeedControlVars*) last_seq->effectdata; + + if (vars) { + sprintf(str, "Last mapped frame: %d at %d", + vars->lastValidFrame, + vars->lastValidFrame + + last_seq->startdisp); + + glRasterPos3f(xco, yco, 0.0); + BMF_DrawString(G.font, str); + } + } } void seq_reset_imageofs(SpaceSeq *sseq) |