Skip to content
Permalink
Browse files
Merge pull request #7230 from ligfx/remove_clamp_draw_size
RenderBase: don't clamp draw size to window
  • Loading branch information
JosJuice committed Jan 3, 2019
2 parents fc68b83 + 2a30e64 commit a8e5f2b
Showing 1 changed file with 0 additions and 4 deletions.
@@ -543,10 +543,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;

0 comments on commit a8e5f2b

Please sign in to comment.