summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/D3D/Render.cpp
diff options
context:
space:
mode:
authorPierre Bourdon <delroth@gmail.com>2016-01-09 01:01:05 +0100
committerPierre Bourdon <delroth@gmail.com>2016-01-09 01:01:05 +0100
commitbf1c53a6e8f18d45682af7a16d17b1173536254b (patch)
treeecfc3fe7522b175cba68dca3fb0eeea3a90d4668 /Source/Core/VideoBackends/D3D/Render.cpp
parentb56a084b0b04cd5e229eefb069579325a2095d3a (diff)
parent66595b0ac98cea09c249202aa8bcde78f434808a (diff)
Merge pull request #3451 from RisingFog/libav
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.cpp3
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);
}