Skip to content

Commit

Permalink
RenderBase: don't clamp draw size to window
Browse files Browse the repository at this point in the history
It distorts the aspect ratio when cropping, rather than actually cropping.
  • Loading branch information
ligfx committed Jul 7, 2018
1 parent 7b986c1 commit 2a30e64
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions Source/Core/VideoCommon/RenderBase.cpp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -538,10 +538,6 @@ void Renderer::UpdateDrawRectangle()
crop_width = win_width; 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 // 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_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; draw_height = std::ceil(draw_height) - static_cast<int>(std::ceil(draw_height)) % 4;
Expand Down

0 comments on commit 2a30e64

Please sign in to comment.