aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/QuickMedia.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/QuickMedia.cpp b/src/QuickMedia.cpp
index 5ef47a7..6eb81c7 100644
--- a/src/QuickMedia.cpp
+++ b/src/QuickMedia.cpp
@@ -2365,9 +2365,11 @@ namespace QuickMedia {
auto text_bounds = chapter_text.getLocalBounds();
chapter_text.setPosition(std::floor(window_size.x * 0.5f - text_bounds.width * 0.5f), std::floor(window_size.y - background_height * 0.5f - font_height * 0.5f));
window.draw(chapter_text);
- }
- window.display();
+ window.display();
+ } else {
+ std::this_thread::sleep_for(std::chrono::milliseconds(50));
+ }
}
end_of_images_page: