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:
authorTon Roosendaal <ton@blender.org>2004-10-29 21:21:28 +0400
committerTon Roosendaal <ton@blender.org>2004-10-29 21:21:28 +0400
commitaa223d1812e8974e349c18ea7eb8e1f6254b8218 (patch)
treea580a9cd975090fc05632bade8d3e42f9230da07 /source/blender/src/drawsound.c
parent408702009e4315a932d8f7b321f5ef5c7b424f14 (diff)
- Two fixes:
1) Sound window displays 'frs/sec' value correct now (found a 25 hardcoded) 2) LeftMouse click in sliders of IpoWind, NLA, Action allows to make sliders smaller/larger, for quick zoom. Used to work but disappeared in early this decade or so :)
Diffstat (limited to 'source/blender/src/drawsound.c')
-rw-r--r--source/blender/src/drawsound.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/src/drawsound.c b/source/blender/src/drawsound.c
index 77ad7eb6efc..d08f5d0ee0e 100644
--- a/source/blender/src/drawsound.c
+++ b/source/blender/src/drawsound.c
@@ -103,7 +103,7 @@ static void draw_sample(bSample *sample)
short *sp, sampdx;
/* one sample is where in v2d space? (v2d space in frames!) */
- sampfac= 25.0/(sample->rate);
+ sampfac= ((float)G.scene->r.frs_sec)/(sample->rate);
/* how many samples? */
samples= sample->len/(sample->channels*(sample->bits/8));