Fix T45453: Driver button's ignore DPI

This commit is contained in:
Campbell Barton 2015-07-21 15:30:34 +10:00
parent a48db0894a
commit 9eb6dcbb46
Notes: blender-bot 2023-02-14 11:21:40 +01:00
Referenced by issue #45453, Driver menu buttons are the wrong size on Retina Display
1 changed files with 2 additions and 2 deletions

View File

@ -696,13 +696,13 @@ static void graph_panel_drivers(const bContext *C, Panel *pa)
col = uiLayoutColumn(pa->layout, false);
block = uiLayoutGetBlock(col);
but = uiDefIconTextBut(block, UI_BTYPE_BUT, B_IPO_DEPCHANGE, ICON_FILE_REFRESH, IFACE_("Update Dependencies"),
0, 0, 10 * UI_UNIT_X, 22,
0, 0, 10 * UI_UNIT_X, UI_UNIT_Y,
NULL, 0.0, 0.0, 0, 0,
TIP_("Force updates of dependencies"));
UI_but_func_set(but, driver_update_flags_cb, fcu, NULL);
but = uiDefIconTextBut(block, UI_BTYPE_BUT, B_IPO_DEPCHANGE, ICON_ZOOMOUT, IFACE_("Remove Driver"),
0, 0, 10 * UI_UNIT_X, 18,
0, 0, 10 * UI_UNIT_X, UI_UNIT_Y,
NULL, 0.0, 0.0, 0, 0,
TIP_("Remove this driver"));
UI_but_funcN_set(but, driver_remove_cb, MEM_dupallocN(ale), NULL);