From 76416f336a1b5d705baf7b28ef9fbc726566c8c1 Mon Sep 17 00:00:00 2001 From: Hans Goudey Date: Wed, 4 Nov 2020 15:38:11 -0600 Subject: Cleanup: Move function to proper file This lower level drawing function didn't make sense in the panel code, especially when it is used in multiple other places. --- source/blender/editors/interface/interface_panel.c | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'source/blender/editors/interface/interface_panel.c') diff --git a/source/blender/editors/interface/interface_panel.c b/source/blender/editors/interface/interface_panel.c index af7b674df7f..d02cfdc8940 100644 --- a/source/blender/editors/interface/interface_panel.c +++ b/source/blender/editors/interface/interface_panel.c @@ -1041,24 +1041,6 @@ void UI_panels_draw(const bContext *C, ARegion *region) } } -/* Triangle 'icon' for panel header. */ -void UI_draw_icon_tri(float x, float y, char dir, const float color[4]) -{ - const float f3 = 0.05 * U.widget_unit; - const float f5 = 0.15 * U.widget_unit; - const float f7 = 0.25 * U.widget_unit; - - if (dir == 'h') { - UI_draw_anti_tria(x - f3, y - f5, x - f3, y + f5, x + f7, y, color); - } - else if (dir == 't') { - UI_draw_anti_tria(x - f5, y - f7, x + f5, y - f7, x, y + f3, color); - } - else { /* 'v' = vertical, down. */ - UI_draw_anti_tria(x - f5, y + f3, x + f5, y + f3, x, y - f7, color); - } -} - #define PNL_ICON UI_UNIT_X /* Could be UI_UNIT_Y too. */ /* For button layout next to label. */ -- cgit v1.2.3