diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-06-29 16:27:48 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-06-29 17:01:28 +0300 |
commit | 1044a3b657a469c82559d249103e361e5a34dfed (patch) | |
tree | 710f23bcc5460af9c5c75f8c8bc005ec8550e9b7 /source | |
parent | 8637ff5c9610388f2d1cd7032c119278efc31aea (diff) |
Fix wrong usage of U.ui_scale, drawing code must use U.dpi_fac
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/draw/modes/edit_mesh_mode_text.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/draw/modes/edit_mesh_mode_text.c b/source/blender/draw/modes/edit_mesh_mode_text.c index f3630a77e9a..7c7a9a586fa 100644 --- a/source/blender/draw/modes/edit_mesh_mode_text.c +++ b/source/blender/draw/modes/edit_mesh_mode_text.c @@ -66,7 +66,7 @@ void DRW_edit_mesh_mode_text_measure_stats(ARegion *ar, /* when 2 edge-info options are enabled, space apart */ const bool do_edge_textpair = (v3d->overlay.edit_flag & V3D_OVERLAY_EDIT_EDGE_LEN) && (v3d->overlay.edit_flag & V3D_OVERLAY_EDIT_EDGE_ANG); - const short edge_texpair_sep = (short)(5.0f * U.ui_scale); + const short edge_texpair_sep = (short)(5.0f * U.dpi_fac); float clip_planes[4][4]; /* allow for displaying shape keys and deform mods */ BMIter iter; |