[host] update capture classes to return the pitch

This commit is contained in:
Geoffrey McRae
2017-12-17 05:05:56 +11:00
parent 1815387bbb
commit db59e67ddb
4 changed files with 4 additions and 0 deletions

View File

@@ -260,6 +260,7 @@ GrabStatus DXGI::GrabFrame(FrameInfo & frame)
// send the last frame again if we timeout to prevent the client stalling on restart
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;