From 092df8753414edfd75127204416e3ac5d71c4393 Mon Sep 17 00:00:00 2001 From: Germano Cavalcante Date: Sat, 20 Nov 2021 01:44:35 -0300 Subject: Fix error in rBfb0ea9 There is no need to multiply the "dash_width" by `UM.pixel size` since the "viewport_size" is already being divided by the DPI. Ref {rBfb0ea9} --- source/blender/editors/space_graph/graph_draw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/editors/space_graph') diff --git a/source/blender/editors/space_graph/graph_draw.c b/source/blender/editors/space_graph/graph_draw.c index 85d27075117..3635e9deb29 100644 --- a/source/blender/editors/space_graph/graph_draw.c +++ b/source/blender/editors/space_graph/graph_draw.c @@ -1068,7 +1068,7 @@ static void draw_fcurve(bAnimContext *ac, SpaceGraph *sipo, ARegion *region, bAn immBindBuiltinProgram(GPU_SHADER_2D_LINE_DASHED_UNIFORM_COLOR); immUniform2f("viewport_size", viewport_size[2] / UI_DPI_FAC, viewport_size[3] / UI_DPI_FAC); immUniform1i("colors_len", 0); /* Simple dashes. */ - immUniform1f("dash_width", 4.0f * U.pixelsize); + immUniform1f("dash_width", 4.0f); immUniform1f("dash_factor", 0.5f); } else { -- cgit v1.2.3