aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2020-12-14 08:18:24 +0100
committerdec05eba <dec05eba@protonmail.com>2020-12-14 08:18:24 +0100
commit88fed1806e56181a9161c20bcd93cd06d52a5533 (patch)
tree99f5d1ed9901c0de53b0f07b7f34ae9127a4db70 /include
parent484571d6f5bc71626f320b4dc06b43331d7f1240 (diff)
Attempt to fix spastic body when using embedded items and loading them in render callback, fix gif play next on 4chan.. test
Diffstat (limited to 'include')
-rw-r--r--include/Body.hpp8
1 files changed, 5 insertions, 3 deletions
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;
};