aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2020-10-14 17:37:38 +0200
committerdec05eba <dec05eba@protonmail.com>2020-10-14 18:15:58 +0200
commitb7885c4536e1e376eb9fe5c3dc720482e84be338 (patch)
treebc520eb8b67b33350f31a2dff16b66c024a3fca9 /include
parente68fd8ebef3ae5e7dd1fbd31a1138519837f95f2 (diff)
Test: fix image loading stutter of body items
Diffstat (limited to 'include')
-rw-r--r--include/Body.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/Body.hpp b/include/Body.hpp
index 875ad61..09b477d 100644
--- a/include/Body.hpp
+++ b/include/Body.hpp
@@ -143,7 +143,7 @@ namespace QuickMedia {
// This happens because of |draw| sets thumbnails as unreferenced at the beginning and cleans them up at the end if they are not drawn in the same function call.
void draw_item(sf::RenderWindow &window, BodyItem *item, sf::Vector2f pos, sf::Vector2f size);
- float get_item_height(BodyItem *item);
+ float get_item_height(BodyItem *item, bool load_texture = true);
float get_spacing_y() const;
static bool string_find_case_insensitive(const std::string &str, const std::string &substr);