From 0c4fd4700d6ee31f6b848d49a6aa7ebfa4a806fa Mon Sep 17 00:00:00 2001 From: dec05eba Date: Wed, 23 Nov 2022 20:41:40 +0100 Subject: Re-add item drawing height diff shifting to fix bumping in item drawing Add newline before codeblock in 4chan if previous line is not a newline. --- include/Body.hpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') diff --git a/include/Body.hpp b/include/Body.hpp index ced5f4e..77dac54 100644 --- a/include/Body.hpp +++ b/include/Body.hpp @@ -166,6 +166,8 @@ namespace QuickMedia { void update_dirty_state(BodyItem *body_item, float width); void clear_body_item_cache(BodyItem *body_item); mgl::vec2i get_item_thumbnail_size(BodyItem *item) const; + // Returns the height of the items + float process_reactions(mgl::Window *window, BodyItem *item, float max_width, float x, float y, float padding_y, float text_offset_y, bool draw); // Returns -1 if not found int get_previous_visible_item(int start_index); -- cgit v1.2.3