2.5 audio cleanup:
[blender.git] / source / blender / editors / screen / screen_edit.c
index dd6bb09c1e4cc7d306fe2f9fa16385fffabe7f03..5519b2609a1494dda08edc354fee7278d5fcafa9 100644 (file)
@@ -603,21 +603,6 @@ void select_connected_scredge(bScreen *sc, ScrEdge *edge)
        }
 }
 
-/* helper call for below, correct buttons view */
-static void screen_test_scale_region(ListBase *regionbase, float facx, float facy)
-{
-       ARegion *ar;
-       
-       for(ar= regionbase->first; ar; ar= ar->next) {
-               if(ar->regiontype==RGN_TYPE_WINDOW) {
-                       ar->v2d.cur.xmin *= facx;
-                       ar->v2d.cur.xmax *= facx;
-                       ar->v2d.cur.ymin *= facy;
-                       ar->v2d.cur.ymax *= facy;
-               }
-       }
-}
-
 /* test if screen vertices should be scaled */
 static void screen_test_scale(bScreen *sc, int winsizex, int winsizey)
 {
@@ -668,19 +653,6 @@ static void screen_test_scale(bScreen *sc, int winsizex, int winsizey)
                        
                        CLAMP(sv->vec.y, 0, winsizey);
                }
-               
-               /* keep buttons view2d same size */
-               for(sa= sc->areabase.first; sa; sa= sa->next) {
-                       SpaceLink *sl;
-                       
-                       if(sa->spacetype==SPACE_BUTS)
-                               screen_test_scale_region(&sa->regionbase, facx, facy);
-                       
-                       for(sl= sa->spacedata.first; sl; sl= sl->next)
-                               if(sl->spacetype==SPACE_BUTS)
-                                       screen_test_scale_region(&sl->regionbase, facx, facy);
-               }
-               
        }
        
        /* test for collapsed areas. This could happen in some blender version... */
@@ -1505,7 +1477,7 @@ void ED_screen_animation_timer(bContext *C, int redraws, int enable)
                screen->animtimer= WM_event_add_window_timer(win, TIMER0, (1.0/FPS));
                sad->ar= CTX_wm_region(C);
                sad->redraws= redraws;
-               sad->reverse= (enable < 0);
+               sad->flag= (enable < 0) ? ANIMPLAY_FLAG_REVERSE : 0;
                screen->animtimer->customdata= sad;
                
        }
@@ -1531,7 +1503,6 @@ unsigned int ED_screen_view3d_layers(bScreen *screen)
 
 
 /* results in fully updated anim system */
-/* in future sound should be on WM level, only 1 sound can play! */
 void ED_update_for_newframe(const bContext *C, int mute)
 {
        bScreen *screen= CTX_wm_screen(C);