mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-03-05 16:20:50 +00:00
[host] dxgi: set the pitch on new frames
This commit is contained in:
parent
db59e67ddb
commit
24709ef186
1 changed files with 1 additions and 0 deletions
|
@ -439,6 +439,7 @@ GrabStatus DXGI::GrabFrame(FrameInfo & frame)
|
||||||
|
|
||||||
frame.width = m_desc.Width;
|
frame.width = m_desc.Width;
|
||||||
frame.height = m_desc.Height;
|
frame.height = m_desc.Height;
|
||||||
|
frame.pitch = m_rect.Pitch;
|
||||||
frame.stride = m_rect.Pitch / 4;
|
frame.stride = m_rect.Pitch / 4;
|
||||||
|
|
||||||
unsigned int size = m_height * m_rect.Pitch;
|
unsigned int size = m_height * m_rect.Pitch;
|
||||||
|
|
Loading…
Add table
Reference in a new issue