From 8574d6c7da09f5d5929df8ff8c35cb4d82389459 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sat, 16 Oct 2021 02:35:49 +0200 Subject: Scale roundness with dpi, use XGetDefault instead of x db --- src/Body.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Body.cpp') diff --git a/src/Body.cpp b/src/Body.cpp index a8a1966..d4b6c5c 100644 --- a/src/Body.cpp +++ b/src/Body.cpp @@ -108,8 +108,8 @@ namespace QuickMedia { num_visible_items(0), top_cut_off(false), bottom_cut_off(false), - item_background(sf::Vector2f(1.0f, 1.0f), 10.0f, get_theme().selected_color, rounded_rectangle_shader), - reaction_background(sf::Vector2f(1.0f, 1.0f), 10.0f, get_theme().shade_color, rounded_rectangle_shader), + item_background(sf::Vector2f(1.0f, 1.0f), 10.0f * get_config().scale, get_theme().selected_color, rounded_rectangle_shader), + reaction_background(sf::Vector2f(1.0f, 1.0f), 10.0f * get_config().scale, get_theme().shade_color, rounded_rectangle_shader), rounded_rectangle_shader(rounded_rectangle_shader), rounded_rectangle_mask_shader(rounded_rectangle_mask_shader) { -- cgit v1.2.3