aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-06-04 23:33:56 +0200
committerdec05eba <dec05eba@protonmail.com>2021-06-04 23:33:56 +0200
commita3c42c7e8b3e78448e5f8ad6d9af389ae6ffda31 (patch)
treee5864c2c843f3ea83618aab70f96e95c9ee3649a /src
parent2acab72c413dadfe58b7b2e5ddcb304e6a9f1843 (diff)
Speedy gonzales
Diffstat (limited to 'src')
-rw-r--r--src/QuickMedia.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/QuickMedia.cpp b/src/QuickMedia.cpp
index 2926637..0709a12 100644
--- a/src/QuickMedia.cpp
+++ b/src/QuickMedia.cpp
@@ -1709,7 +1709,6 @@ namespace QuickMedia {
while(window.isOpen() && (current_page == PageType::IMAGES || current_page == PageType::IMAGES_CONTINUOUS)) {
if(current_page == PageType::IMAGES) {
- window.setFramerateLimit(20);
while(current_page == PageType::IMAGES) {
int page_navigation = image_page(manga_images_page, chapters_body);
if(page_navigation == -1) {
@@ -1725,13 +1724,13 @@ namespace QuickMedia {
manga_images_page->change_chapter(chapters_body->get_selected()->get_title(), chapters_body->get_selected()->url);
}
}
- window.setFramerateLimit(FPS_IDLE);
- idle = true;
} else if(current_page == PageType::IMAGES_CONTINUOUS) {
image_continuous_page(manga_images_page);
}
}
+ window.setFramerateLimit(monitor_hz);
+ idle = false;
content_storage_file_modified = true;
image_download_cancel = true;
@@ -1791,6 +1790,7 @@ namespace QuickMedia {
tabs[selected_tab].page->submit_body_item = prev_selected_item;
redraw = true;
+ idle_active_handler();
hide_virtual_keyboard();
};
@@ -3076,6 +3076,7 @@ namespace QuickMedia {
malloc_trim(0);
sf::Clock force_redraw_timer;
+ window.setFramerateLimit(20);
// TODO: Show to user if a certain page is missing (by checking page name (number) and checking if some are skipped)
while (current_page == PageType::IMAGES && window.isOpen()) {
@@ -3270,9 +3271,6 @@ namespace QuickMedia {
window_size.x = window.getSize().x;
window_size.y = window.getSize().y;
-
- window.setFramerateLimit(FPS_IDLE);
- idle = true;
}
void Program::image_board_thread_page(ImageBoardThreadPage *thread_page, Body *thread_body) {