diff options
author | Ton Roosendaal <ton@blender.org> | 2003-10-17 23:03:53 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2003-10-17 23:03:53 +0400 |
commit | 58a0811ad9633236f75b692fbe0955d3b91ccabb (patch) | |
tree | f474124ab73fd8ac6d40e6d7af76bf7f1ba9e065 /source/blender/src/drawipo.c | |
parent | 8ce5ece950305d50966ad6409295207fcf3ed42b (diff) |
- fixed bug in windows with extreme small height... it didnt accept
input
- was needed for usage of this windowtype (headerless) as 'timeline'
dragger, which was supposed to be...
- as extra I fixed 'home', it sets start/end frame for sound window
- at mouselocation the current frame or time is printed
- rightmouse menu switches seconds/frames (should be in header as option...)
- displaybutton 'frs/sec/' updates soundwindow too
So, its not perfect... but try opening a tiny high headerless audio
window on top of buttonswin or somewhere full width. not bad...
Diffstat (limited to 'source/blender/src/drawipo.c')
-rw-r--r-- | source/blender/src/drawipo.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/source/blender/src/drawipo.c b/source/blender/src/drawipo.c index 7df9a44133a..a959a8421b4 100644 --- a/source/blender/src/drawipo.c +++ b/source/blender/src/drawipo.c @@ -653,8 +653,16 @@ void drawscroll(int disptype) scroll_prstr(fac, 3.0+(float)(hor.ymin), tim+G.scene->r.frs_sec*fac2/100.0, 'h', disptype); } else if(curarea->spacetype==SPACE_SOUND) { - fac2= val/(float)G.scene->r.frs_sec; - scroll_prstr(fac, 3.0+(float)(hor.ymin), fac2, 'h', disptype); + SpaceSound *ssound= curarea->spacedata.first; + + if(ssound->flag & SND_DRAWFRAMES) { + ipomachtx= 1; + scroll_prstr(fac, 3.0+(float)(hor.ymin), val, 'h', disptype); + } + else { + fac2= val/(float)G.scene->r.frs_sec; + scroll_prstr(fac, 3.0+(float)(hor.ymin), fac2, 'h', disptype); + } } else { scroll_prstr(fac, 3.0+(float)(hor.ymin), val, 'h', disptype); |