diff options
author | Yonit Halperin <yhalperi@redhat.com> | 2013-05-20 18:00:31 -0400 |
---|---|---|
committer | Yonit Halperin <yhalperi@redhat.com> | 2013-05-20 18:00:31 -0400 |
commit | bcfd94b7346e54cc485881fa31f114e93b2bd178 (patch) | |
tree | 665ebf96a08602427af8c3425af42be84a65d617 | |
parent | 2a6ae974a0a5dd94850e5bd0111c04d526e38597 (diff) |
Fix stride of preferred source mode
-rw-r--r-- | C++/bdd_dmm.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/C++/bdd_dmm.cxx b/C++/bdd_dmm.cxx index 70aae73..dd3baaa 100644 --- a/C++/bdd_dmm.cxx +++ b/C++/bdd_dmm.cxx @@ -980,7 +980,7 @@ NTSTATUS BASIC_DISPLAY_DRIVER::AddSingleSourceMode(_In_ CONST DXGK_VIDPNSOURCEMO pVidPnSourceModeInfo->Format.Graphics.PrimSurfSize.cx = m_CurrentModes[SourceId].DispInfo.Width;
pVidPnSourceModeInfo->Format.Graphics.PrimSurfSize.cy = m_CurrentModes[SourceId].DispInfo.Height;
pVidPnSourceModeInfo->Format.Graphics.VisibleRegionSize = pVidPnSourceModeInfo->Format.Graphics.PrimSurfSize;
- pVidPnSourceModeInfo->Format.Graphics.Stride = m_CurrentModes[SourceId].DispInfo.Pitch;
+ pVidPnSourceModeInfo->Format.Graphics.Stride = BPPFromPixelFormat(gBddPixelFormats[PelFmtIdx])/8 *m_CurrentModes[SourceId].DispInfo.Width;//m_CurrentModes[SourceId].DispInfo.Pitch;
pVidPnSourceModeInfo->Format.Graphics.PixelFormat = gBddPixelFormats[PelFmtIdx];
pVidPnSourceModeInfo->Format.Graphics.ColorBasis = D3DKMDT_CB_SCRGB;
pVidPnSourceModeInfo->Format.Graphics.PixelValueAccessMode = D3DKMDT_PVAM_DIRECT;
|