summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorDanil Alexeev <danil@alexeev.xyz>2023-01-14 08:28:55 +0300
committerDanil Alexeev <danil@alexeev.xyz>2023-01-16 12:49:58 +0300
commita8cbb6245b53955883d8cbeee43524f7bf9fa4af (patch)
treea82c3b949909003acdab92a6ba318c3791df79ba /editor
parent0f0b853c988f2c3ff322d8eaf97dd4f8d5de46c8 (diff)
Fix scaling issue in `draw_line` and similar methods
Diffstat (limited to 'editor')
-rw-r--r--editor/plugins/curve_editor_plugin.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/plugins/curve_editor_plugin.cpp b/editor/plugins/curve_editor_plugin.cpp
index b9205a9c6e..20710bac19 100644
--- a/editor/plugins/curve_editor_plugin.cpp
+++ b/editor/plugins/curve_editor_plugin.cpp
@@ -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);
}
};