diff --git a/src/SFML/Graphics/RenderTarget.cpp b/src/SFML/Graphics/RenderTarget.cpp index a429bed1..5fa6cccd 100644 --- a/src/SFML/Graphics/RenderTarget.cpp +++ b/src/SFML/Graphics/RenderTarget.cpp @@ -133,8 +133,8 @@ IntRect RenderTarget::getViewport(const View& view) const return IntRect(static_cast(0.5f + width * viewport.left), static_cast(0.5f + height * viewport.top), - static_cast(width * viewport.width), - static_cast(height * viewport.height)); + static_cast(0.5f + width * viewport.width), + static_cast(0.5f + height * viewport.height)); }