Fix T61430: invoke_popup() does not respect ui scale

Reviewers: brecht

Differential Revision: https://developer.blender.org/D4341
This commit is contained in:
Jacques Lucke 2019-02-12 13:30:24 +01:00
parent 024f5ba2bd
commit 20f78dc12f
Notes: blender-bot 2023-02-14 08:29:54 +01:00
Referenced by issue #61430, window_manager.invoke_popup() does not respect preferences.view.ui_scale
1 changed files with 2 additions and 2 deletions

View File

@ -1212,8 +1212,8 @@ int WM_operator_ui_popup(bContext *C, wmOperator *op, int width, int height)
{
wmOpPopUp *data = MEM_callocN(sizeof(wmOpPopUp), "WM_operator_ui_popup");
data->op = op;
data->width = width;
data->height = height;
data->width = width * U.dpi_fac;
data->height = height * U.dpi_fac;
data->free_op = true; /* if this runs and gets registered we may want not to free it */
UI_popup_block_ex(C, wm_operator_ui_create, NULL, wm_operator_ui_popup_cancel, data, op);
return OPERATOR_RUNNING_MODAL;