System: Always adjust video size for capture

Fixes auto resolution size with non-multiple-of-4 window sizes.
pull/3490/head
Stenzek 3 months ago
parent 22fb032f91
commit a660c13625
No known key found for this signature in database

@ -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 {

Loading…
Cancel
Save