diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-08-08 15:08:10 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-08-08 15:53:30 +0300 |
commit | 3504b4c9c324e001e461d1483275e25aa81dadb3 (patch) | |
tree | 44c372517139627ae623e1b81ffd95653bc96135 /source/blender/editors/space_image | |
parent | 01aae653a14351e62883ef5468e58b1089099d72 (diff) |
Fix T68360: Zoom too sensitive with hi-dpi
Scale pixel-input by pixel size for zoom operators.
Diffstat (limited to 'source/blender/editors/space_image')
-rw-r--r-- | source/blender/editors/space_image/image_ops.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/editors/space_image/image_ops.c b/source/blender/editors/space_image/image_ops.c index 1aa8c4c988b..05ba82b8bde 100644 --- a/source/blender/editors/space_image/image_ops.c +++ b/source/blender/editors/space_image/image_ops.c @@ -570,6 +570,8 @@ static void image_zoom_apply(ViewZoomData *vpd, delta = x - vpd->origx + y - vpd->origy; } + delta /= U.pixelsize; + if (zoom_invert) { delta = -delta; } |