diff options
author | dec05eba <dec05eba@protonmail.com> | 2021-09-16 13:30:49 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2021-09-16 13:30:49 +0200 |
commit | 848ae799803a448d7b66f528fd4e033e2b50ffc3 (patch) | |
tree | da0c476638facfe949580e0b4166611f90f51a54 /src/Body.cpp | |
parent | d798fa75562da1d9ad2b1cc064c062fde6775b72 (diff) |
Fix peertube for older servers, add working peertube instances from https://peertube_isolation.frama.io/list/
Diffstat (limited to 'src/Body.cpp')
-rw-r--r-- | src/Body.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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); |