From dc5813f7ce0d5a36dbd4470f213637bfebcdd68f Mon Sep 17 00:00:00 2001 From: dec05eba Date: Fri, 3 Sep 2021 01:32:52 +0200 Subject: Scale matrix room side panel by font scale --- src/QuickMedia.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/QuickMedia.cpp b/src/QuickMedia.cpp index dd7690f..8ef16c4 100644 --- a/src/QuickMedia.cpp +++ b/src/QuickMedia.cpp @@ -5360,7 +5360,7 @@ namespace QuickMedia { Mention mention; mention.users_tab_body = tabs[USERS_TAB_INDEX].body.get(); - const float user_mention_body_height = std::floor(300.0f * get_ui_scale()); + const float user_mention_body_height = std::floor(300.0f * get_ui_scale() * get_font_scale()); bool frame_skip_text_entry = false; @@ -6603,8 +6603,8 @@ namespace QuickMedia { const float body_width = window_size.x; this->body_pos = sf::Vector2f(0.0f, tab_shade_height); - if(window_size.x > 900.0f && show_room_side_panel) { - this->body_size = sf::Vector2f(std::floor(300.0f * get_ui_scale()), window_size.y - tab_shade_height); + if(window_size.x > 900.0f * get_font_scale() && show_room_side_panel) { + this->body_size = sf::Vector2f(std::floor(300.0f * get_ui_scale() * get_font_scale()), window_size.y - tab_shade_height); draw_room_list = true; } else { this->body_size = sf::Vector2f(0.0f, 0.0f); -- cgit v1.2.3