aboutsummaryrefslogtreecommitdiff
path: root/src/Entry.cpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-10-16 02:35:49 +0200
committerdec05eba <dec05eba@protonmail.com>2021-10-16 02:35:49 +0200
commit8574d6c7da09f5d5929df8ff8c35cb4d82389459 (patch)
tree0ff6f173a199db293a1223a6efb3f21dc188a3ef /src/Entry.cpp
parentc35d035e22822515545edc2587d0d29871fad01c (diff)
Scale roundness with dpi, use XGetDefault instead of x db
Diffstat (limited to 'src/Entry.cpp')
-rw-r--r--src/Entry.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Entry.cpp b/src/Entry.cpp
index 8f63945..f0c02fd 100644
--- a/src/Entry.cpp
+++ b/src/Entry.cpp
@@ -18,7 +18,7 @@ namespace QuickMedia {
draw_background(true),
text("", false, std::floor(get_config().input.font_size * get_config().scale * get_config().font_scale), 0.0f),
width(0.0f),
- 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(placeholder_text, *FontLoader::get_font(FontLoader::FontType::LATIN), std::floor(get_config().input.font_size * get_config().scale * get_config().font_scale)),
mouse_left_inside(false)
{