aboutsummaryrefslogtreecommitdiff
path: root/include/Body.hpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-04-06 04:42:24 +0200
committerdec05eba <dec05eba@protonmail.com>2021-04-06 04:42:24 +0200
commit797a36228bdb3b77b7314585a31de6f27feab51d (patch)
tree211b9dfbfe1922ce20977618cc73c8960245b79a /include/Body.hpp
parent8d8c01258a9414b90ecf3e1e374390543c29c4d9 (diff)
Use malloc_trim to reduce memory usage after freeing memory
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 cc11664..eb74837 100644
--- a/include/Body.hpp
+++ b/include/Body.hpp
@@ -178,6 +178,7 @@ namespace QuickMedia {
class Body {
public:
Body(Program *program, sf::Texture &loading_icon_texture);
+ ~Body();
// Select previous page, ignoring invisible items. Returns true if the item was changed. This can be used to check if the top was hit when wrap_around is set to false
bool select_previous_page();
@@ -309,6 +310,7 @@ namespace QuickMedia {
sf::Vector2f body_size;
float selected_item_height = 0.0f;
float selected_scrolled = 0.0f;
+ bool loaded_textures_changed = false;
//float scroll_y = 0.0f;
};
} \ No newline at end of file