diff options
author | dec05eba <dec05eba@protonmail.com> | 2021-09-03 01:32:52 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2021-09-03 01:32:52 +0200 |
commit | dc5813f7ce0d5a36dbd4470f213637bfebcdd68f (patch) | |
tree | aebb77101b0f95b9b573e385fa4650f17ac20de6 /src | |
parent | 6fbd76171b1f8f357524de20009380a93ca9bbf9 (diff) |
Scale matrix room side panel by font scale
Diffstat (limited to 'src')
-rw-r--r-- | src/QuickMedia.cpp | 6 |
1 files 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); |