diff --git a/scene/gui/code_edit.cpp b/scene/gui/code_edit.cpp index 3631fbec6923..eed7441425b8 100644 --- a/scene/gui/code_edit.cpp +++ b/scene/gui/code_edit.cpp @@ -35,6 +35,7 @@ #include "core/os/keyboard.h" #include "core/string/string_builder.h" #include "core/string/ustring.h" +#include "editor/themes/editor_scale.h" #include "scene/theme/theme_db.h" void CodeEdit::_apply_project_settings() { @@ -247,7 +248,7 @@ void CodeEdit::_notification(int p_what) { } if (code_completion_options[i].deprecated) { - draw_line(Point2(title_pos.x, title_pos.y + row_height / 2), Point2(title_pos.x + tl->get_line_width(), title_pos.y + row_height / 2), code_completion_options[l].font_color, 2.0); + draw_line(Point2(title_pos.x, title_pos.y + row_height / 2), Point2(title_pos.x + tl->get_line_width(), title_pos.y + row_height / 2), code_completion_options[l].font_color, Math::round(2.0 * EDSCALE)); } Point2 match_pos = Point2(code_completion_rect.position.x + icon_area_size.x + theme_cache.code_completion_icon_separation, code_completion_rect.position.y + i * row_height);