aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2020-09-13 21:59:09 +0200
committerdec05eba <dec05eba@protonmail.com>2020-09-13 21:59:09 +0200
commit3facc8725c6b6330df016ec98636058192cf91f3 (patch)
tree798a758803f11b77dc3b7e9b0f86780cfc9052a9 /src
parenta73eb41773d3f70867358bbef26563ca431b0908 (diff)
Clear thumbnails when navigating to another page, temporary revert font size because of rendering bug
Diffstat (limited to 'src')
-rw-r--r--src/Body.cpp2
-rw-r--r--src/QuickMedia.cpp3
2 files changed, 4 insertions, 1 deletions
diff --git a/src/Body.cpp b/src/Body.cpp
index b4ab917..0f47a2b 100644
--- a/src/Body.cpp
+++ b/src/Body.cpp
@@ -175,7 +175,7 @@ namespace QuickMedia {
if(body_item->title_text)
body_item->title_text->setString(body_item->get_title());
else
- body_item->title_text = std::make_unique<Text>(body_item->get_title(), bold_font, 16, size.x - 50 - image_padding_x * 2.0f);
+ body_item->title_text = std::make_unique<Text>(body_item->get_title(), font, 14, size.x - 50 - image_padding_x * 2.0f);
//body_item->title_text->updateGeometry(); // TODO: Call this to make getHeight work on first frame (called below)
}
diff --git a/src/QuickMedia.cpp b/src/QuickMedia.cpp
index da280d8..4b528cf 100644
--- a/src/QuickMedia.cpp
+++ b/src/QuickMedia.cpp
@@ -227,6 +227,7 @@ namespace QuickMedia {
case Page::SEARCH_SUGGESTION:
body->draw_thumbnails = current_plugin->search_suggestions_has_thumbnails();
search_suggestion_page();
+ body->clear_thumbnails();
break;
#if 0
case Page::SEARCH_RESULT:
@@ -273,11 +274,13 @@ namespace QuickMedia {
case Page::IMAGE_BOARD_THREAD_LIST: {
body->draw_thumbnails = true;
image_board_thread_list_page();
+ body->clear_thumbnails();
break;
}
case Page::IMAGE_BOARD_THREAD: {
body->draw_thumbnails = true;
image_board_thread_page();
+ body->clear_thumbnails();
break;
}
default: