diff options
author | dec05eba <dec05eba@protonmail.com> | 2021-10-16 02:35:49 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2021-10-16 02:35:49 +0200 |
commit | 8574d6c7da09f5d5929df8ff8c35cb4d82389459 (patch) | |
tree | 0ff6f173a199db293a1223a6efb3f21dc188a3ef /src/SearchBar.cpp | |
parent | c35d035e22822515545edc2587d0d29871fad01c (diff) |
Scale roundness with dpi, use XGetDefault instead of x db
Diffstat (limited to 'src/SearchBar.cpp')
-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 2a6b089..0a7254b 100644 --- a/src/SearchBar.cpp +++ b/src/SearchBar.cpp @@ -25,7 +25,7 @@ namespace QuickMedia { text_autosearch_delay(50), caret_visible(true), text(placeholder, *FontLoader::get_font(FontLoader::FontType::LATIN), std::floor(get_config().search.font_size * get_config().scale * get_config().font_scale)), - background(sf::Vector2f(1.0f, 1.0f), 10.0f, get_theme().selected_color, rounded_rectangle_shader), + background(sf::Vector2f(1.0f, 1.0f), 10.0f * get_config().scale, get_theme().selected_color, rounded_rectangle_shader), placeholder_str(placeholder), show_placeholder(true), updated_search(false), |