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
No known key found for this signature in database
GPG key ID: 124453E157DA8DC7
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);
}
};