diff options
author | dec05eba <dec05eba@protonmail.com> | 2021-05-22 11:35:32 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2021-05-22 11:35:32 +0200 |
commit | ebd068ccc32787ac9fc2a2cde9a2e7c1cccb9b07 (patch) | |
tree | 1ee4b23a4d8328177c74e37ab9eec3802e3e7ea2 | |
parent | 31b99befbe173508554cdd808c3947f45cc24ea3 (diff) |
Fix bottom scissor
-rw-r--r-- | src/Body.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Body.cpp b/src/Body.cpp index 78629f3..3ebd715 100644 --- a/src/Body.cpp +++ b/src/Body.cpp @@ -806,8 +806,8 @@ namespace QuickMedia { sf::Vector2u window_size = window.getSize(); sf::View prev_view = window.getView(); - sf::View new_view(sf::FloatRect(0.0f, 0.0f, window_size.x, window_size.y)); - new_view.setViewport(sf::FloatRect(0.0f, scissor_y / (float)window_size.y, 1.0f, 1.0f)); + sf::View new_view(sf::FloatRect(0.0f, 0.0f, window_size.x, size.y)); + new_view.setViewport(sf::FloatRect(0.0f, scissor_y / (float)window_size.y, 1.0f, size.y / (float)window_size.y)); window.setView(new_view); if(prev_num_visible_items > 0) { |