diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2018-10-30 18:21:44 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2018-10-30 18:44:23 +0300 |
commit | c4f69794ca14e3c38ea8558c8a5414df2a778e19 (patch) | |
tree | a740374774076d9c1beaeb794423a1a9a131c27e /source/blender/gpu/intern | |
parent | 26223f8d9a09a0554e94610039abf5c85284e2e3 (diff) |
UI: Fix point size and line width ignoring UI scaling option
Diffstat (limited to 'source/blender/gpu/intern')
-rw-r--r-- | source/blender/gpu/intern/gpu_state.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/gpu/intern/gpu_state.c b/source/blender/gpu/intern/gpu_state.c index 68d846ccfba..803c595aaf3 100644 --- a/source/blender/gpu/intern/gpu_state.c +++ b/source/blender/gpu/intern/gpu_state.c @@ -25,6 +25,8 @@ * */ +#include "DNA_userdef_types.h" + #include "GPU_glew.h" #include "GPU_state.h" @@ -110,12 +112,12 @@ void GPU_line_stipple(bool enable) void GPU_line_width(float width) { - glLineWidth(width); + glLineWidth(width * U.pixelsize); } void GPU_point_size(float size) { - glPointSize(size); + glPointSize(size * U.pixelsize); } void GPU_polygon_smooth(bool enable) |