Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillermo S. Romero <gsr.b3d@infernal-iceberg.com>2009-06-08 21:46:29 +0400
committerGuillermo S. Romero <gsr.b3d@infernal-iceberg.com>2009-06-08 21:46:29 +0400
commit7a3215d11b0ed1d0bce48895e06cddf549d5e9ae (patch)
tree9de5c6b16be35e60f5930ce8c5fa6422df0aa0f4 /source/blender/editors/animation/anim_draw.c
parentcd6ace5c162c4e563457fa6dafd60c09588ee8cf (diff)
Change separator to one that does not mean drop frame.
Diffstat (limited to 'source/blender/editors/animation/anim_draw.c')
-rw-r--r--source/blender/editors/animation/anim_draw.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/source/blender/editors/animation/anim_draw.c b/source/blender/editors/animation/anim_draw.c
index 58839361286..0474f81754d 100644
--- a/source/blender/editors/animation/anim_draw.c
+++ b/source/blender/editors/animation/anim_draw.c
@@ -83,11 +83,11 @@ static void draw_cfra_number (Scene *scene, View2D *v2d, float cfra, short time)
glScalef(1.0f/xscale, 1.0f, 1.0f);
if (time) {
- /* SMPTE timecode style:
+ /* (Pseudo) SMPTE timecode style:
* - In general, minutes and seconds should be shown, as most clips will be
* within this length. Hours will only be included if relevant.
* - Only show frames when zoomed in enough for them to be relevant
- * (using separator convention of ';' for frames, ala QuickTime).
+ * (using separator of '+' for frames).
* When showing frames, use slightly different display to avoid confusion with mm:ss format
*/
float val= FRA2TIME(CFRA);
@@ -124,9 +124,9 @@ static void draw_cfra_number (Scene *scene, View2D *v2d, float cfra, short time)
}
/* print timecode to temp string buffer */
- if (hours) sprintf(str, " %s%02d:%02d:%02d;%02d", neg, hours, minutes, seconds, frames);
- else if (minutes) sprintf(str, " %s%02d:%02d;%02d", neg, minutes, seconds, frames);
- else sprintf(str, " %s%d;%02d", neg, seconds, frames);
+ if (hours) sprintf(str, " %s%02d:%02d:%02d+%02d", neg, hours, minutes, seconds, frames);
+ else if (minutes) sprintf(str, " %s%02d:%02d+%02d", neg, minutes, seconds, frames);
+ else sprintf(str, " %s%d+%02d", neg, seconds, frames);
}
else
sprintf(str, " %d", CFRA);