From 77c126dd4c819a4ad92bb7895af4593831cb2daf Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Thu, 1 Nov 2018 12:23:33 +0100 Subject: Fix T57553: Python operator popup size does not follow UI scale and DPI. Make it the convention to multiply by scaling factor inside the function, so Python scripts that didn't add DPI scale start working correctly. --- source/blender/editors/space_image/image_ops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/editors/space_image') diff --git a/source/blender/editors/space_image/image_ops.c b/source/blender/editors/space_image/image_ops.c index ba984c33e47..b161de9f472 100644 --- a/source/blender/editors/space_image/image_ops.c +++ b/source/blender/editors/space_image/image_ops.c @@ -2488,7 +2488,7 @@ static int image_new_invoke(bContext *C, wmOperator *op, const wmEvent *UNUSED(e /* Better for user feedback. */ RNA_string_set(op->ptr, "name", DATA_(IMA_DEF_NAME)); - return WM_operator_props_dialog_popup(C, op, 15 * UI_UNIT_X, 5 * UI_UNIT_Y); + return WM_operator_props_dialog_popup(C, op, 300, 100); } static void image_new_draw(bContext *UNUSED(C), wmOperator *op) -- cgit v1.2.3