From 0aabcaca2844ce1bc0f702c20c60a7cef53eef44 Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Sun, 17 Feb 2013 14:53:29 +0000 Subject: [PATCH] Fix #34285: sculpt/paint radial control F key operators did not adjust brush size to retina pixel size correctly. --- source/blender/windowmanager/intern/wm_operators.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source/blender/windowmanager/intern/wm_operators.c b/source/blender/windowmanager/intern/wm_operators.c index f43541ec283..9939e6b69ba 100644 --- a/source/blender/windowmanager/intern/wm_operators.c +++ b/source/blender/windowmanager/intern/wm_operators.c @@ -3391,6 +3391,11 @@ static void radial_control_paint_cursor(bContext *C, int x, int y, void *customd break; } + /* adjust for DPI, like BKE_brush_size_get */ + r1 *= U.pixelsize; + r2 *= U.pixelsize; + tex_radius *= U.pixelsize; + /* Keep cursor in the original place */ x = rc->initial_mouse[0] - ar->winrct.xmin; y = rc->initial_mouse[1] - ar->winrct.ymin;