mirror of
https://github.com/stenzek/duckstation.git
synced 2026-02-14 02:14:35 +00:00
System: Always adjust video size for capture
Fixes auto resolution size with non-multiple-of-4 window sizes.
This commit is contained in:
@@ -5474,8 +5474,7 @@ bool System::StartMediaCapture(std::string path)
|
||||
const GSVector2i video_size = backend->GetPresenter().CalculateScreenshotSize(mode);
|
||||
u32 video_width = static_cast<u32>(video_size.x);
|
||||
u32 video_height = static_cast<u32>(video_size.y);
|
||||
if (mode != DisplayScreenshotMode::ScreenResolution)
|
||||
MediaCapture::AdjustVideoSize(&video_width, &video_height);
|
||||
MediaCapture::AdjustVideoSize(&video_width, &video_height);
|
||||
|
||||
// fire back to the CPU thread to actually start the capture
|
||||
Host::RunOnCPUThread([path = std::move(path), capture_audio, video_width, video_height]() mutable {
|
||||
|
||||
Reference in New Issue
Block a user