diff options
author | Campbell Barton <ideasman42@gmail.com> | 2020-08-18 04:53:53 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-08-18 05:09:30 +0300 |
commit | d1057890c40b6f50d0a13215eec90ab1af03a44b (patch) | |
tree | 7557ae57a1b79fe94a64615c5cdc1161831a812a /source/blender/editors/interface/interface_handlers.c | |
parent | 6978635622cc77a559a3f888945d840e2e80a52d (diff) |
Fix incorrect pixelsize use where DPI scale was intended
Changing line-width shouldn't scale cursor motion. Related to T79787.
Use dpi_fac for scaling curve error threshold & number button drag
threshold calculation.
Diffstat (limited to 'source/blender/editors/interface/interface_handlers.c')
-rw-r--r-- | source/blender/editors/interface/interface_handlers.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/interface/interface_handlers.c b/source/blender/editors/interface/interface_handlers.c index bcb4f7c672f..20d07f97647 100644 --- a/source/blender/editors/interface/interface_handlers.c +++ b/source/blender/editors/interface/interface_handlers.c @@ -4790,7 +4790,7 @@ static bool ui_numedit_but_NUM(uiBut *but, if (is_float == false) { /* at minimum, moving cursor 2 pixels should change an int button. */ - CLAMP_MIN(non_linear_scale, 0.5f * U.pixelsize); + CLAMP_MIN(non_linear_scale, 0.5f * UI_DPI_FAC); } data->dragf += (((float)(mx - data->draglastx)) / deler) * non_linear_scale; |