summaryrefslogtreecommitdiff
path: root/scene/gui
diff options
context:
space:
mode:
authorYuri Roubinsky <chaosus89@gmail.com>2020-11-24 18:15:10 +0300
committerYuri Roubinsky <chaosus89@gmail.com>2020-11-27 20:45:59 +0300
commit3ec972fc95f3d9fb308af0fded69fc7e53940f78 (patch)
tree451f0c2094bbb34f40000edb2076c9a485b85ac5 /scene/gui
parentd395f7082876db14b592952eb91961a62d9bc604 (diff)
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
}