diff options
author | Hans Goudey <h.goudey@me.com> | 2020-11-05 00:38:11 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2020-11-05 00:38:11 +0300 |
commit | 76416f336a1b5d705baf7b28ef9fbc726566c8c1 (patch) | |
tree | 66ccb4ef99779cf58239837cc4985ee1a04442a6 /source/blender/editors/interface/interface_panel.c | |
parent | 7ee518cf705fcebee2d110bfbb6bf00a0f170efb (diff) |
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.
Diffstat (limited to 'source/blender/editors/interface/interface_panel.c')
-rw-r--r-- | source/blender/editors/interface/interface_panel.c | 18 |
1 files changed, 0 insertions, 18 deletions
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. */ |