UI: Fix point size and line width ignoring UI scaling option

This commit is contained in:
2018-10-30 16:21:44 +01:00
parent 26223f8d9a
commit c4f69794ca
4 changed files with 7 additions and 5 deletions

View File

@@ -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)