aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-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;