From b7885c4536e1e376eb9fe5c3dc720482e84be338 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Wed, 14 Oct 2020 17:37:38 +0200 Subject: Test: fix image loading stutter of body items --- include/Body.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') 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); -- cgit v1.2.3