diff options
| author | Admiral H. Curtiss <pikachu025@gmail.com> | 2023-06-16 17:59:51 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-06-16 17:59:51 +0200 |
| commit | cbcf5bfac15734d37b9c4b1353274365c229ad2f (patch) | |
| tree | ed6fbb7ebac8cff0e49bd6101e27a109aa94f3d4 /Source/Core/VideoCommon/Present.cpp | |
| parent | 50301bf1d166ff6cd0a0660821783fd532469dc7 (diff) | |
| parent | adf4089276b81eb17fadb6069b9cdb17da8f9d87 (diff) | |
Merge pull request #11889 from Filoppi/patch-18
Fix video output having small black borders all the times
Diffstat (limited to 'Source/Core/VideoCommon/Present.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/Present.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Source/Core/VideoCommon/Present.cpp b/Source/Core/VideoCommon/Present.cpp index 3ac4d516df..c969bdb91f 100644 --- a/Source/Core/VideoCommon/Present.cpp +++ b/Source/Core/VideoCommon/Present.cpp @@ -440,8 +440,11 @@ void Presenter::UpdateDrawRectangle() } // 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; + if (g_frame_dumper->IsFrameDumping()) + { + 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; + } m_target_rectangle.left = static_cast<int>(std::round(win_width / 2.0 - draw_width / 2.0)); m_target_rectangle.top = static_cast<int>(std::round(win_height / 2.0 - draw_height / 2.0)); |
