diff options
Diffstat (limited to 'src/Body.cpp')
-rw-r--r-- | src/Body.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/Body.cpp b/src/Body.cpp index 7411a79..adb774c 100644 --- a/src/Body.cpp +++ b/src/Body.cpp @@ -1455,7 +1455,7 @@ namespace QuickMedia { if(item->author_text && !merge_with_previous) { item->author_text->set_position(vec2f_floor(item_pos.x + text_offset_x, item_pos.y + padding_y - text_offset_y)); item->author_text->draw(window); - item_pos.y += item->author_text->getHeight() - 2.0f + std::floor(3.0f * get_config().scale); + item_pos.y += item->author_text->getHeight() + std::floor(3.0f * get_config().scale); } if(include_embedded_item && item->embedded_item_status != FetchStatus::NONE) { @@ -1481,14 +1481,14 @@ namespace QuickMedia { if(item->title_text) { item->title_text->set_position(vec2f_floor(item_pos.x + text_offset_x, item_pos.y + padding_y - text_offset_y)); item->title_text->draw(window); - item_pos.y += item->title_text->getHeight() - 2.0f + std::floor(3.0f * get_config().scale); + item_pos.y += item->title_text->getHeight() + std::floor(3.0f * get_config().scale); } if(item->description_text) { float height_offset = 0.0f; item->description_text->set_position(vec2f_floor(item_pos.x + text_offset_x, item_pos.y + padding_y - text_offset_y + height_offset)); item->description_text->draw(window); - item_pos.y += item->description_text->getHeight() - 2.0f; + item_pos.y += item->description_text->getHeight(); } if(!item->reactions.empty() && include_embedded_item) { @@ -1705,11 +1705,11 @@ namespace QuickMedia { float item_height = 0.0f; bool has_loaded_text = false; if(item->title_text) { - item_height += item->title_text->getHeight() - 2.0f + std::floor(3.0f * get_config().scale); + item_height += item->title_text->getHeight() + std::floor(3.0f * get_config().scale); has_loaded_text = true; } if(item->author_text && !merge_with_previous) { - item_height += item->author_text->getHeight() - 2.0f + std::floor(3.0f * get_config().scale); + item_height += item->author_text->getHeight() + std::floor(3.0f * get_config().scale); has_loaded_text = true; } if(include_embedded_item && item->embedded_item_status != FetchStatus::NONE) { @@ -1721,7 +1721,7 @@ namespace QuickMedia { has_loaded_text = true; // TODO: Remove this } if(item->description_text) { - item_height += item->description_text->getHeight() - 2.0f; + item_height += item->description_text->getHeight(); has_loaded_text = true; } |