UI: Fix point size and line width ignoring UI scaling option
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user