diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2021-10-04 16:12:52 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-04 16:12:52 +0200 |
commit | 865b62b1cddbb7989bc520eed2d8428c6923fee9 (patch) | |
tree | 5e021d90f23d64a161bec950593766d1b8aaa365 /scene/gui/line_edit.cpp | |
parent | 2a09e119864432b0074941eb7eba802c08faa72a (diff) | |
parent | bdbb7b3999cddc821489d11350ad21bf89af5a42 (diff) | |
download | redot-engine-865b62b1cddbb7989bc520eed2d8428c6923fee9.tar.gz |
Merge pull request #53341 from pycbouh/gui-editor-scale-encapsulation
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); |