aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-09-03 01:54:30 +0200
committerdec05eba <dec05eba@protonmail.com>2021-09-03 01:54:30 +0200
commit53d23bbaf257c588409825ff50857c02b43dd407 (patch)
tree9c48efce6260ea1b9621b2befa30107f2c7fb3e4
parentf22a3b83c053167511b576884355d667cf39d467 (diff)
Scale imageviewer font by ui and font scale
-rw-r--r--src/ImageViewer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ImageViewer.cpp b/src/ImageViewer.cpp
index 0f9e84e..f60e796 100644
--- a/src/ImageViewer.cpp
+++ b/src/ImageViewer.cpp
@@ -37,7 +37,7 @@ namespace QuickMedia {
chapter_cache_dir(chapter_cache_dir),
focused_page(current_page),
font(FontLoader::get_font(FontLoader::FontType::LATIN)),
- page_text("", *FontLoader::get_font(FontLoader::FontType::LATIN), 14),
+ page_text("", *FontLoader::get_font(FontLoader::FontType::LATIN), 14 * get_ui_scale() * get_font_scale()),
fit_image_to_window(fit_image_to_window)
{
current_page = std::min(current_page, num_pages);