From 518a7685c411b5f3f75091298e6afe6fab8e0303 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Thu, 10 Jun 2021 00:46:59 +0200 Subject: Smoother body movement with unknown image size --- include/Body.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include/Body.hpp') diff --git a/include/Body.hpp b/include/Body.hpp index abf0d4b..623afca 100644 --- a/include/Body.hpp +++ b/include/Body.hpp @@ -150,9 +150,9 @@ namespace QuickMedia { std::vector replies; std::string post_number; void *userdata; // Not managed, should be deallocated by whoever sets this - float prev_last_loaded_height = 0.0f; - float last_loaded_height = 0.0f; - float current_loaded_height = 0.0f; + float loaded_height = 0.0f; + float loaded_image_height = 0.0f; + float loaded_content_height = 0.0f; FetchStatus embedded_item_status = FetchStatus::NONE; // Important! Should refer to a new BodyItem, not one that already exists in the body. // TODO: Allow referring to an existing body item. This doesn't work properly at the moment because max width of text and line count calculation getting messed up -- cgit v1.2.3