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/header_sound.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/header_sound.c')
-rw-r--r-- | source/blender/src/header_sound.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/src/header_sound.c b/source/blender/src/header_sound.c index eea0d4a51ea..fafea6fbcce 100644 --- a/source/blender/src/header_sound.c +++ b/source/blender/src/header_sound.c @@ -54,8 +54,10 @@ #include "DNA_ID.h" #include "DNA_screen_types.h" +#include "DNA_scene_types.h" #include "DNA_sound_types.h" #include "DNA_space_types.h" +#include "DNA_view2d_types.h" #include "DNA_userdef_types.h" #include "BIF_editsound.h" @@ -158,6 +160,10 @@ void do_sound_buttons(unsigned short event) break; case B_SOUNDHOME: + if(G.ssound->sound==NULL) { + G.v2d->tot.xmin= G.scene->r.sfra; + G.v2d->tot.xmax= G.scene->r.efra; + } G.v2d->cur= G.v2d->tot; test_view2d(G.v2d, curarea->winx, curarea->winy); scrarea_queue_winredraw(curarea); |