aboutsummaryrefslogtreecommitdiff
path: root/include/Body.hpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-04-21 02:48:43 +0200
committerdec05eba <dec05eba@protonmail.com>2021-04-21 02:48:43 +0200
commit26614c66d4b57d857457fff8278fd8c1cb04d690 (patch)
tree976fedf92c2f8f091f67e9eae2d293a83c0b835c /include/Body.hpp
parentde93c6ef39de46cc4078135dfa13954181be6f1b (diff)
Rework read marker, do not set it if not needed
Diffstat (limited to 'include/Body.hpp')
-rw-r--r--include/Body.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/Body.hpp b/include/Body.hpp
index 90e75c8..98baa6d 100644
--- a/include/Body.hpp
+++ b/include/Body.hpp
@@ -214,6 +214,7 @@ namespace QuickMedia {
// Returns null if no visible items. This is the item we can see the end of
BodyItem* get_last_fully_visible_item();
+ BodyItem* get_last_visible_item();
void clamp_selection();
@@ -286,6 +287,7 @@ namespace QuickMedia {
bool last_item_fully_visible;
int first_fully_visible_item;
int last_fully_visible_item;
+ int last_visible_item = -1;
sf::Clock draw_timer;
sf::Clock frame_timer;
double elapsed_time_sec = 0.0;