1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-19 14:31:59 +00:00

Restored antialiased lines by emulation using triangle strips

This commit is contained in:
Yuri Roubinsky
2020-11-24 18:15:10 +03:00
parent d395f70828
commit 3ec972fc95
9 changed files with 126 additions and 75 deletions

View File

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