Fix default mode pitch

Signed-off-by: Javier Celaya <javier.celaya@flexvdi.com>
Acked-by: Frediano Ziglio <fziglio@redhat.com>
This commit is contained in:
Javier Celaya 2016-02-10 11:38:56 +01:00 committed by Frediano Ziglio
parent 1af6eb074c
commit a495c21748

View File

@ -4792,7 +4792,7 @@ NTSTATUS HwDeviceInterface::AcquireDisplayInfo(DXGK_DISPLAY_INFORMATION& DispInf
{ {
DispInfo.Width = MIN_WIDTH_SIZE; DispInfo.Width = MIN_WIDTH_SIZE;
DispInfo.Height = MIN_HEIGHT_SIZE; DispInfo.Height = MIN_HEIGHT_SIZE;
DispInfo.Pitch = BPPFromPixelFormat(D3DDDIFMT_R8G8B8) / 8; DispInfo.Pitch = MIN_WIDTH_SIZE * BPPFromPixelFormat(D3DDDIFMT_R8G8B8) / 8;
DispInfo.ColorFormat = D3DDDIFMT_R8G8B8; DispInfo.ColorFormat = D3DDDIFMT_R8G8B8;
DispInfo.TargetId = 0; DispInfo.TargetId = 0;
if (PhysicAddress.QuadPart != 0L) if (PhysicAddress.QuadPart != 0L)