diff options
Diffstat (limited to 'source/blender/editors/interface/interface_panel.c')
-rw-r--r-- | source/blender/editors/interface/interface_panel.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/source/blender/editors/interface/interface_panel.c b/source/blender/editors/interface/interface_panel.c index 2917758c995..1178f06b551 100644 --- a/source/blender/editors/interface/interface_panel.c +++ b/source/blender/editors/interface/interface_panel.c @@ -1966,21 +1966,6 @@ void UI_panels_draw(const bContext *C, ARegion *region) } } -void UI_panels_scale(ARegion *region, float new_width) -{ - LISTBASE_FOREACH (uiBlock *, block, ®ion->uiblocks) { - if (block->panel) { - const float fac = new_width / (float)block->panel->sizex; - block->panel->sizex = new_width; - - LISTBASE_FOREACH (uiBut *, but, &block->buttons) { - but->rect.xmin *= fac; - but->rect.xmax *= fac; - } - } - } -} - /** \} */ /* -------------------------------------------------------------------- */ |