Fix T61430: invoke_popup() does not respect ui scale

Reviewers: brecht

Differential Revision: https://developer.blender.org/D4341
This commit is contained in:
2019-02-12 13:30:24 +01:00
parent 024f5ba2bd
commit 20f78dc12f

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;