diff options
author | dec05eba <dec05eba@protonmail.com> | 2022-03-01 05:26:53 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2022-03-01 05:26:53 +0100 |
commit | d1ea6b9f9ae63f2715f2e0b8aa6eedb9a334bf7a (patch) | |
tree | 3f7dcad7e343c9640ab6ad39244fe7f310fa474b /src | |
parent | ed3e39886aaaa119b62c87f21b6c5ea4bf360a93 (diff) |
poop
Diffstat (limited to 'src')
-rw-r--r-- | src/SearchBar.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/SearchBar.cpp b/src/SearchBar.cpp index 070b763..bb7d358 100644 --- a/src/SearchBar.cpp +++ b/src/SearchBar.cpp @@ -79,7 +79,7 @@ namespace QuickMedia { } else { window.draw(text); if(show_placeholder || text.get_string().empty()) - caret.set_position(text.get_position() + mgl::vec2f(0.0f, character_size * 0.4f)); + caret.set_position(text.get_position() + mgl::vec2f(-caret.get_size().x, character_size * 0.4f)); else caret.set_position(text.find_character_pos(text.get_string().size()) + mgl::vec2f(0.0f, character_size * 0.4f)); } |