[Bf-blender-cvs] [1044a3b657a] master: Fix wrong usage of U.ui_scale, drawing code must use U.dpi_fac

Brecht Van Lommel noreply at git.blender.org
Sat Jun 29 16:05:23 CEST 2019


Commit: 1044a3b657a469c82559d249103e361e5a34dfed
Author: Brecht Van Lommel
Date:   Sat Jun 29 15:27:48 2019 +0200
Branches: master
https://developer.blender.org/rB1044a3b657a469c82559d249103e361e5a34dfed

Fix wrong usage of U.ui_scale, drawing code must use U.dpi_fac

===================================================================

M	source/blender/draw/modes/edit_mesh_mode_text.c

===================================================================

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;



More information about the Bf-blender-cvs mailing list