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

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2018-09-07 04:35:33 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-09-07 04:35:33 +0300
commit77c0a7e1d578f915ffbd4d127d0d5acb96a8a1d6 (patch)
tree926d6914be09efb2afb13d0c554d0a9154eaea17 /source/blender/editors/space_view3d/view3d_gizmo_ruler.c
parent5940ea11ce89ce16db1cfa956b80efcfddc2e2c8 (diff)
Fix missing line width for helper line drawing
Also scale by pixel size.
Diffstat (limited to 'source/blender/editors/space_view3d/view3d_gizmo_ruler.c')
-rw-r--r--source/blender/editors/space_view3d/view3d_gizmo_ruler.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/space_view3d/view3d_gizmo_ruler.c b/source/blender/editors/space_view3d/view3d_gizmo_ruler.c
index ec36f97ebd1..6bb6a022a82 100644
--- a/source/blender/editors/space_view3d/view3d_gizmo_ruler.c
+++ b/source/blender/editors/space_view3d/view3d_gizmo_ruler.c
@@ -520,7 +520,7 @@ static void gizmo_ruler_draw(const bContext *C, wmGizmo *gz)
/* anti-aliased lines for more consistent appearance */
GPU_line_smooth(true);
- GPU_line_width(1.0f);
+ GPU_line_width(1.0f * U.pixelsize);
BLF_enable(blf_mono_font, BLF_ROTATION);
BLF_size(blf_mono_font, 14 * U.pixelsize, U.dpi);