From 88fed1806e56181a9161c20bcd93cd06d52a5533 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Mon, 14 Dec 2020 08:18:24 +0100 Subject: Attempt to fix spastic body when using embedded items and loading them in render callback, fix gif play next on 4chan.. test --- include/Body.hpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'include/Body.hpp') diff --git a/include/Body.hpp b/include/Body.hpp index 525cee5..fb3f20e 100644 --- a/include/Body.hpp +++ b/include/Body.hpp @@ -236,8 +236,8 @@ namespace QuickMedia { float get_page_scroll() const { return page_scroll; } // This is the item we can see the end of bool is_last_item_fully_visible() const { return last_item_fully_visible; } - - bool is_body_full_with_items() const { return items_cut_off; } + bool is_body_full_with_items() const { return body_full; } + int get_num_visible_items() const { return num_visible_items; }; sf::Text progress_text; sf::Text replies_text; @@ -275,7 +275,9 @@ namespace QuickMedia { double elapsed_time_sec = 0.0; bool selected_line_top_visible = true; bool selected_line_bottom_visible = true; - bool items_cut_off = false; + bool top_cut_off = false; + bool bottom_cut_off = false; + bool body_full = false; float offset_to_top = 0.0f; float offset_to_bottom = 0.0f; }; -- cgit v1.2.3