mirror of
https://github.com/stenzek/duckstation.git
synced 2025-07-28 22:01:59 +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:
parent
22fb032f91
commit
a660c13625
@ -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…
x
Reference in New Issue
Block a user