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-05-21 15:51:10 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-05-21 15:51:10 +0300
commit575437ac909531c40ccb77ff7851c60b7fba49f2 (patch)
tree2e9d8972b75974c57eacf23c8a9106309fec4956 /source/blender/draw/intern/draw_view.c
parentfbe73d1f319bf35f37531c9c6b6e3120092a6767 (diff)
3D View: fix scale of 3D cursor crosshair
Interface scale was applied twice.
Diffstat (limited to 'source/blender/draw/intern/draw_view.c')
-rw-r--r--source/blender/draw/intern/draw_view.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/draw/intern/draw_view.c b/source/blender/draw/intern/draw_view.c
index 85146be2d72..fcb3a407d03 100644
--- a/source/blender/draw/intern/draw_view.c
+++ b/source/blender/draw/intern/draw_view.c
@@ -682,7 +682,7 @@ void DRW_draw_cursor(void)
immUniformThemeColor3(TH_VIEW_OVERLAY);
immBegin(GWN_PRIM_LINES, 12);
- const float scale = ED_view3d_pixel_size(rv3d, cursor->location) * U.dpi_fac * 20;
+ const float scale = ED_view3d_pixel_size(rv3d, cursor->location) * 20;
#define CURSOR_VERT(axis_vec, axis, fac) \
immVertex3f( \
@@ -693,7 +693,7 @@ void DRW_draw_cursor(void)
#define CURSOR_EDGE(axis_vec, axis, sign) { \
CURSOR_VERT(axis_vec, axis, sign 1.0f); \
- CURSOR_VERT(axis_vec, axis, sign 0.3f); \
+ CURSOR_VERT(axis_vec, axis, sign 0.25f); \
}
for (int axis = 0; axis < 3; axis++) {