Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormeta-androcto <meta.androcto1@gmail.com>2019-08-20 04:25:07 +0300
committermeta-androcto <meta.androcto1@gmail.com>2019-08-20 04:25:07 +0300
commita1d16077aeb5a7d9d80656a70ae107e23744252c (patch)
treecf1392b1b29e7911b7f38f27e7a5362f912defe6 /space_view3d_math_vis
parent04580d6c7397e370cc72e7575d1c93f188cdd061 (diff)
space_view3d_math_vis/draw: Use ui_scale + dpi : D5455
Diffstat (limited to 'space_view3d_math_vis')
-rw-r--r--space_view3d_math_vis/draw.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/space_view3d_math_vis/draw.py b/space_view3d_math_vis/draw.py
index f9777e77..8fe9f6a8 100644
--- a/space_view3d_math_vis/draw.py
+++ b/space_view3d_math_vis/draw.py
@@ -81,7 +81,8 @@ def draw_callback_px():
return
font_id = 0
- blf.size(font_id, 12, 72)
+ ui_scale = context.preferences.system.ui_scale
+ blf.size(font_id, round(12 * ui_scale), context.preferences.system.dpi)
data_matrix, data_quat, data_euler, data_vector, data_vector_array = utils.console_math_data()
if not data_matrix and not data_quat and not data_euler and not data_vector and not data_vector_array: