1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +00:00

Fix scaling issue in draw_line and similar methods

This commit is contained in:
Danil Alexeev
2023-01-14 08:28:55 +03:00
parent 0f0b853c98
commit a8cbb6245b
11 changed files with 44 additions and 40 deletions

View File

@@ -621,8 +621,8 @@ struct CanvasItemPlotCurve {
color2(p_color2) {}
void operator()(Vector2 pos0, Vector2 pos1, bool in_definition) {
// FIXME: Using a line width greater than 1 breaks curve rendering
ci.draw_line(pos0, pos1, in_definition ? color1 : color2, 1);
// FIXME: Using a quad line breaks curve rendering.
ci.draw_line(pos0, pos1, in_definition ? color1 : color2, -1);
}
};