mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-10 08:38:20 +00:00
[host] dxgi: set the pitch on new frames
This commit is contained in:
parent
db59e67ddb
commit
24709ef186
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user