Fix T61430: invoke_popup() does not respect ui scale
Reviewers: brecht Differential Revision: https://developer.blender.org/D4341
This commit is contained in:
@@ -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");
|
wmOpPopUp *data = MEM_callocN(sizeof(wmOpPopUp), "WM_operator_ui_popup");
|
||||||
data->op = op;
|
data->op = op;
|
||||||
data->width = width;
|
data->width = width * U.dpi_fac;
|
||||||
data->height = height;
|
data->height = height * U.dpi_fac;
|
||||||
data->free_op = true; /* if this runs and gets registered we may want not to free it */
|
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);
|
UI_popup_block_ex(C, wm_operator_ui_create, NULL, wm_operator_ui_popup_cancel, data, op);
|
||||||
return OPERATOR_RUNNING_MODAL;
|
return OPERATOR_RUNNING_MODAL;
|
||||||
|
Reference in New Issue
Block a user