diff options
author | dec05eba <dec05eba@protonmail.com> | 2021-04-21 02:48:43 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2021-04-21 02:48:43 +0200 |
commit | 26614c66d4b57d857457fff8278fd8c1cb04d690 (patch) | |
tree | 976fedf92c2f8f091f67e9eae2d293a83c0b835c /include | |
parent | de93c6ef39de46cc4078135dfa13954181be6f1b (diff) |
Rework read marker, do not set it if not needed
Diffstat (limited to 'include')
-rw-r--r-- | include/Body.hpp | 2 |
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; |