Fix [#21516] UI artifacts in array modifier
[blender.git] / source / blender / editors / space_nla / space_nla.c
index 46fec4015eaae17a7d9241cbe56c7ba1359d605b..64933e3c11a0809624e3ff05d5ff96255ccb20ed 100644 (file)
@@ -227,11 +227,9 @@ static void nla_channel_area_draw(const bContext *C, ARegion *ar)
        bAnimContext ac;
        View2D *v2d= &ar->v2d;
        View2DScrollers *scrollers;
-       float col[3];
        
        /* clear and setup matrix */
-       UI_GetThemeColor3fv(TH_BACK, col);
-       glClearColor(col[0], col[1], col[2], 0.0);
+       UI_ThemeClearColor(TH_BACK);
        glClear(GL_COLOR_BUFFER_BIT);
        
        UI_view2d_view_ortho(C, v2d);
@@ -273,12 +271,10 @@ static void nla_main_area_draw(const bContext *C, ARegion *ar)
        View2D *v2d= &ar->v2d;
        View2DGrid *grid;
        View2DScrollers *scrollers;
-       float col[3];
        short unit=0, flag=0;
        
        /* clear and setup matrix */
-       UI_GetThemeColor3fv(TH_BACK, col);
-       glClearColor(col[0], col[1], col[2], 0.0);
+       UI_ThemeClearColor(TH_BACK);
        glClear(GL_COLOR_BUFFER_BIT);
        
        UI_view2d_view_ortho(C, v2d);