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:
authorClément Foucault <foucault.clem@gmail.com>2018-10-30 18:21:44 +0300
committerClément Foucault <foucault.clem@gmail.com>2018-10-30 18:44:23 +0300
commitc4f69794ca14e3c38ea8558c8a5414df2a778e19 (patch)
treea740374774076d9c1beaeb794423a1a9a131c27e /source/blender/gpu
parent26223f8d9a09a0554e94610039abf5c85284e2e3 (diff)
UI: Fix point size and line width ignoring UI scaling option
Diffstat (limited to 'source/blender/gpu')
-rw-r--r--source/blender/gpu/intern/gpu_state.c6
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)