diff options
| author | Michael M <mchtly@gmail.com> | 2018-07-07 13:27:31 -0700 |
|---|---|---|
| committer | Michael M <mchtly@gmail.com> | 2018-07-07 13:32:10 -0700 |
| commit | 2a30e6497432437d64fbcb46fd74aa1df6bf6173 (patch) | |
| tree | 66806515815640e82357a53be6cae8e29d0b4e82 /Source/Core/VideoCommon/RenderBase.cpp | |
| parent | 7b986c1b54eac4aac972e24bd4a9d81b8ee746a1 (diff) | |
RenderBase: don't clamp draw size to window
It distorts the aspect ratio when cropping, rather than actually cropping.
Diffstat (limited to 'Source/Core/VideoCommon/RenderBase.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/RenderBase.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/Source/Core/VideoCommon/RenderBase.cpp b/Source/Core/VideoCommon/RenderBase.cpp index 25730f98f4..75c82ae3dd 100644 --- a/Source/Core/VideoCommon/RenderBase.cpp +++ b/Source/Core/VideoCommon/RenderBase.cpp @@ -538,10 +538,6 @@ void Renderer::UpdateDrawRectangle() crop_width = win_width; } - // Clamp the draw width/height to the screen size, to ensure we don't render off-screen. - draw_width = std::min(draw_width, win_width); - draw_height = std::min(draw_height, win_height); - // ensure divisibility by 4 to make it compatible with all the video encoders draw_width = std::ceil(draw_width) - static_cast<int>(std::ceil(draw_width)) % 4; draw_height = std::ceil(draw_height) - static_cast<int>(std::ceil(draw_height)) % 4; |
