[host] dxgi: set the pitch on new frames

This commit is contained in:
Geoffrey McRae 2017-12-17 05:20:19 +11:00
parent db59e67ddb
commit 24709ef186

View File

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