Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacques Lucke <mail@jlucke.com>2019-02-12 15:30:24 +0300
committerJacques Lucke <mail@jlucke.com>2019-02-12 15:30:24 +0300
commit20f78dc12f9c17b52e2be58d337ffbd113dfab66 (patch)
tree6482386bfccb20845caca2e0330fb7ba78a51128 /source/blender/windowmanager
parent024f5ba2bdba7fbd154757b9842995051bbb9a7d (diff)
Fix T61430: invoke_popup() does not respect ui scale
Reviewers: brecht Differential Revision: https://developer.blender.org/D4341
Diffstat (limited to 'source/blender/windowmanager')
-rw-r--r--source/blender/windowmanager/intern/wm_operators.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/windowmanager/intern/wm_operators.c b/source/blender/windowmanager/intern/wm_operators.c
index 37a0c11a1e9..bc94eaafc02 100644
--- a/source/blender/windowmanager/intern/wm_operators.c
+++ b/source/blender/windowmanager/intern/wm_operators.c
@@ -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;