- 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 :)
This commit is contained in:
Ton Roosendaal 2004-10-29 17:21:28 +00:00
parent 408702009e
commit aa223d1812
4 changed files with 7 additions and 4 deletions

@ -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));

@ -2441,7 +2441,8 @@ void winqreadactionspace(ScrArea *sa, void *spacedata, BWinEvent *evt)
* based on user preference USER_LMOUSESELECT
*/
case LEFTMOUSE:
if (mval[0]>ACTWIDTH){
if(view2dmove(LEFTMOUSE)); // only checks for sliders
else if (mval[0]>ACTWIDTH){
do {
getmouseco_areawin(mval);

@ -291,7 +291,8 @@ void winqreadnlaspace(ScrArea *sa, void *spacedata, BWinEvent *evt)
* based on user preference USER_LMOUSESELECT
*/
case LEFTMOUSE:
if (mval[0]>NLAWIDTH){
if(view2dmove(LEFTMOUSE)); // only checks for sliders
else if (mval[0]>NLAWIDTH){
do {
getmouseco_areawin(mval);

@ -1792,7 +1792,8 @@ static void winqreadipospace(ScrArea *sa, void *spacedata, BWinEvent *evt)
if( in_ipo_buttons() ) {
do_ipo_selectbuttons();
doredraw= 1;
}
}
else if(view2dmove(LEFTMOUSE)); // only checks for sliders
else if(G.qual & LR_CTRLKEY) add_vert_ipo();
else {
do {