From 24709ef1869c1d1808ee6f95f2c189bb912aa394 Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Sun, 17 Dec 2017 05:20:19 +1100 Subject: [PATCH] [host] dxgi: set the pitch on new frames --- host/Capture/DXGI.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/host/Capture/DXGI.cpp b/host/Capture/DXGI.cpp index e901e98b..2765d35c 100644 --- a/host/Capture/DXGI.cpp +++ b/host/Capture/DXGI.cpp @@ -439,6 +439,7 @@ GrabStatus DXGI::GrabFrame(FrameInfo & frame) frame.width = m_desc.Width; frame.height = m_desc.Height; + frame.pitch = m_rect.Pitch; frame.stride = m_rect.Pitch / 4; unsigned int size = m_height * m_rect.Pitch;