2.5
[blender.git] / source / blender / editors / space_sound / space_sound.c
index e02f7f4be121463386bcc52b887b7b750d851072..82ed6082a38c98b8d9987c982b798d06080815d0 100644 (file)
@@ -42,7 +42,7 @@
 #include "BLI_rand.h"
 
 #include "BKE_colortools.h"
-#include "BKE_global.h"
+#include "BKE_context.h"
 #include "BKE_screen.h"
 
 #include "ED_space_api.h"
@@ -144,7 +144,7 @@ static void sound_main_area_init(wmWindowManager *wm, ARegion *ar)
 {
        ListBase *keymap;
        
-       UI_view2d_region_reinit(&ar->v2d, V2D_COMMONVIEW_TIMELINE, ar->winx, ar->winy);
+       UI_view2d_region_reinit(&ar->v2d, V2D_COMMONVIEW_CUSTOM, ar->winx, ar->winy);
        
        /* own keymap */
        keymap= WM_keymap_listbase(wm, "Sound", SPACE_SOUND, 0);        /* XXX weak? */
@@ -154,7 +154,7 @@ static void sound_main_area_init(wmWindowManager *wm, ARegion *ar)
 static void sound_main_area_draw(const bContext *C, ARegion *ar)
 {
        /* draw entirely, view changes should be handled here */
-       // SpaceSound *ssound= C->area->spacedata.first;
+       // SpaceSound *ssound= (SpaceSound*)CTX_wm_space_data(C);
        View2D *v2d= &ar->v2d;
        float col[3];