diff options
| author | Chris Burgener <christhecoolist@gmail.com> | 2016-01-02 13:07:08 -0500 |
|---|---|---|
| committer | Chris Burgener <christhecoolist@gmail.com> | 2016-01-07 18:37:58 -0500 |
| commit | c34fb3edf033197e6469b0b7892389402be1c9a2 (patch) | |
| tree | f5528294c88628e6515c05ff5b4d9584bd72f0a1 /Source/Core/VideoBackends/D3D/Render.cpp | |
| parent | 079be1db9a93c1e39bb37f0ca9fd91bf1990aa38 (diff) | |
Use ffmpeg for Windows Video Dumping instead of VFW
Diffstat (limited to 'Source/Core/VideoBackends/D3D/Render.cpp')
| -rw-r--r-- | Source/Core/VideoBackends/D3D/Render.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/Core/VideoBackends/D3D/Render.cpp b/Source/Core/VideoBackends/D3D/Render.cpp index 6391c4636d..1cb49c8264 100644 --- a/Source/Core/VideoBackends/D3D/Render.cpp +++ b/Source/Core/VideoBackends/D3D/Render.cpp @@ -840,7 +840,7 @@ void Renderer::SwapImpl(u32 xfbAddr, u32 fbWidth, u32 fbStride, u32 fbHeight, co { s_recordWidth = source_width; s_recordHeight = source_height; - bAVIDumping = AVIDump::Start(D3D::hWnd, s_recordWidth, s_recordHeight); + bAVIDumping = AVIDump::Start(s_recordWidth, s_recordHeight); if (!bAVIDumping) { PanicAlert("Error dumping frames to AVI."); @@ -865,6 +865,7 @@ void Renderer::SwapImpl(u32 xfbAddr, u32 fbWidth, u32 fbStride, u32 fbHeight, co h = s_recordHeight; } formatBufferDump((u8*)map.pData, &frame_data[0], source_width, source_height, map.RowPitch); + FlipImageData(&frame_data[0], w, h); AVIDump::AddFrame(&frame_data[0], source_width, source_height); D3D::context->Unmap(s_screenshot_texture, 0); } |
