diff options
author | Yuri Sizov <yuris@humnom.net> | 2021-10-02 23:07:42 +0300 |
---|---|---|
committer | Yuri Sizov <yuris@humnom.net> | 2021-10-04 15:25:08 +0300 |
commit | bdbb7b3999cddc821489d11350ad21bf89af5a42 (patch) | |
tree | 7c6d4a0616bdfcaff7c207cfd43f005f6f99a67f /scene/gui/line_edit.cpp | |
parent | 4a42a66cd92cbadac02bd1846ac4022dc8aaa44b (diff) | |
download | redot-engine-bdbb7b3999cddc821489d11350ad21bf89af5a42.tar.gz |
Remove EDSCALE dependency from /scene/gui
Diffstat (limited to 'scene/gui/line_edit.cpp')
-rw-r--r-- | scene/gui/line_edit.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/scene/gui/line_edit.cpp b/scene/gui/line_edit.cpp index 2c1092d8f9..653885aa08 100644 --- a/scene/gui/line_edit.cpp +++ b/scene/gui/line_edit.cpp @@ -40,7 +40,6 @@ #include "servers/display_server.h" #include "servers/text_server.h" #ifdef TOOLS_ENABLED -#include "editor/editor_scale.h" #include "editor/editor_settings.h" #endif #include "scene/main/window.h" @@ -713,11 +712,7 @@ void LineEdit::_notification(int p_what) { ofs_max -= r_icon->get_width(); } -#ifdef TOOLS_ENABLED - int caret_width = Math::round(EDSCALE); -#else - int caret_width = 1; -#endif + int caret_width = Math::round(1 * get_theme_default_base_scale()); // Draw selections rects. Vector2 ofs = Point2(x_ofs + scroll_offset, y_ofs); |