From 848ae799803a448d7b66f528fd4e033e2b50ffc3 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Thu, 16 Sep 2021 13:30:49 +0200 Subject: Fix peertube for older servers, add working peertube instances from https://peertube_isolation.frama.io/list/ --- src/Body.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Body.cpp') diff --git a/src/Body.cpp b/src/Body.cpp index 1117f5b..1b300c5 100644 --- a/src/Body.cpp +++ b/src/Body.cpp @@ -1268,7 +1268,7 @@ namespace QuickMedia { sf::Vector2f content_size = to_vec2f(thumbnail_size); sf::Vector2f loading_icon_size(loading_icon.getTexture()->getSize().x, loading_icon.getTexture()->getSize().y); auto new_loading_icon_size = clamp_to_size(loading_icon_size, content_size); - loading_icon.setPosition(pos + pos_offset + sf::Vector2f(card_padding_x, card_padding_y) + to_vec2f(card_max_image_size) * 0.5f); + loading_icon.setPosition(pos + pos_offset + sf::Vector2f(card_padding_x, card_padding_y) + sf::Vector2f(card_max_image_size.x, content_size.y) * 0.5f); loading_icon.setScale(get_ratio(loading_icon_size, new_loading_icon_size)); loading_icon.setRotation(elapsed_time_sec * 400.0); window.draw(loading_icon); -- cgit v1.2.3