aboutsummaryrefslogtreecommitdiff
path: root/src/Body.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Body.cpp')
-rw-r--r--src/Body.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Body.cpp b/src/Body.cpp
index c849aea..b6b1540 100644
--- a/src/Body.cpp
+++ b/src/Body.cpp
@@ -82,7 +82,6 @@ namespace QuickMedia {
thumbnail_resize_target_size.y = 119;
thumbnail_fallback_size.x = 50.0f;
thumbnail_fallback_size.y = 100.0f;
- image_fallback.setSize(thumbnail_fallback_size);
image_fallback.setFillColor(sf::Color::White);
item_background.setFillColor(sf::Color(55, 60, 68));
}
@@ -374,6 +373,7 @@ namespace QuickMedia {
//item_background.setFillColor(front_color);
//item_background.setOutlineThickness(1.0f);
//item_background.setOutlineColor(sf::Color(13, 15, 17));
+ image_fallback.setSize(thumbnail_fallback_size);
item_background_shadow.setFillColor(line_seperator_color);
int num_items = items.size();
@@ -553,7 +553,7 @@ namespace QuickMedia {
window.draw(image);
text_offset_x += image_padding_x + width_ratio * image_size.x;
// We want the next image fallback to have the same size as the successful image rendering, because its likely the image fallback will have the same size (for example thumbnails on youtube)
- image_fallback.setSize(sf::Vector2f(width_ratio * image_size.x, height_ratio * image_size.y));
+ //image_fallback.setSize(sf::Vector2f(width_ratio * image_size.x, height_ratio * image_size.y));
} else if(!item->thumbnail_url.empty()) {
image_fallback.setPosition(item_pos + sf::Vector2f(image_padding_x, padding_y));
window.draw(image_fallback);