summaryrefslogtreecommitdiff
path: root/scene/gui
diff options
context:
space:
mode:
authorYuri Roubinsky <chaosus89@gmail.com>2020-11-28 11:32:16 +0300
committerGitHub <noreply@github.com>2020-11-28 11:32:16 +0300
commit4a3588a51a9dfde3c8e1155aa2ab80c48cb0c19a (patch)
treee435bd63065b3328ce199202b0552aed4d94a076 /scene/gui
parent94341ac547002d5d1e338fa115754035d44f51d2 (diff)
parent3ec972fc95f3d9fb308af0fded69fc7e53940f78 (diff)
Merge pull request #43828 from Chaosus/restore_line_antialiasing
Restored antialiased lines by emulation using triangle strips
Diffstat (limited to 'scene/gui')
-rw-r--r--scene/gui/graph_edit.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/gui/graph_edit.cpp b/scene/gui/graph_edit.cpp
index ad02aaade5..96810e8707 100644
--- a/scene/gui/graph_edit.cpp
+++ b/scene/gui/graph_edit.cpp
@@ -659,9 +659,9 @@ void GraphEdit::_draw_cos_line(CanvasItem *p_where, const Vector2 &p_from, const
colors.push_back(p_to_color);
#ifdef TOOLS_ENABLED
- p_where->draw_polyline_colors(points, colors, Math::floor(2 * EDSCALE));
+ p_where->draw_polyline_colors(points, colors, Math::floor(2 * EDSCALE), true);
#else
- p_where->draw_polyline_colors(points, colors, 2);
+ p_where->draw_polyline_colors(points, colors, 2, true);
#endif
}