Fix [#21516] UI artifacts in array modifier
[blender.git] / source / blender / editors / space_buttons / space_buttons.c
index 66068a4f23c70f03647794d671a138fbe28f8c55..352f513190340c7ee3b8077ec2a6e71526792668 100644 (file)
@@ -208,15 +208,9 @@ static void buttons_header_area_draw(const bContext *C, ARegion *ar)
        ED_region_header(C, ar);
 #else
 
-       float col[3];
-       
+
        /* clear */
-       if(ED_screen_area_active(C))
-               UI_GetThemeColor3fv(TH_HEADER, col);
-       else
-               UI_GetThemeColor3fv(TH_HEADERDESEL, col);
-       
-       glClearColor(col[0], col[1], col[2], 0.0);
+       UI_ThemeClearColor(ED_screen_area_active(C)?TH_HEADER:TH_HEADERDESEL);
        glClear(GL_COLOR_BUFFER_BIT);
        
        /* set view2d view matrix for scrolling (without scrollers) */