diff options
author | dec05eba <dec05eba@protonmail.com> | 2021-06-13 07:44:17 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2021-06-13 07:44:17 +0200 |
commit | f30e3d1e2ec038ca32df35f261cc2685ba4209b8 (patch) | |
tree | c23b8cb061fcddddf92ced3d6dbd27c46350518d /src/QuickMedia.cpp | |
parent | f51a76e6febb27923e3ca8e853974a24465c4739 (diff) |
misc cleanup
Diffstat (limited to 'src/QuickMedia.cpp')
-rw-r--r-- | src/QuickMedia.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/QuickMedia.cpp b/src/QuickMedia.cpp index 2e2ad6d..1251663 100644 --- a/src/QuickMedia.cpp +++ b/src/QuickMedia.cpp @@ -3905,7 +3905,7 @@ namespace QuickMedia { captcha_sprite.setPosition(std::floor(content_size.x * 0.5f - image_size.x * 0.5f), std::floor(challenge_description_height + content_size.y * 0.5f - image_size.y * 0.5f)); window.draw(captcha_sprite); - challenge_description_text.setPosition(captcha_sprite.getPosition() + sf::Vector2f(image_size.x * 0.5f, 0.0f) - sf::Vector2f(challenge_description_text.getLocalBounds().width * 0.5f, challenge_description_height)); + challenge_description_text.setPosition(captcha_sprite.getPosition() + sf::Vector2f(std::floor(image_size.x * 0.5f), 0.0f) - sf::Vector2f(std::floor(challenge_description_text.getLocalBounds().width * 0.5f), challenge_description_height)); window.draw(challenge_description_text); for(size_t column = 0; column < captcha_num_columns; ++column) { |