[Spice-devel] [PATCH qxl-wddm-dod 2/2] Fix default mode pitch
Frediano Ziglio
fziglio at redhat.com
Tue Nov 22 12:28:53 UTC 2016
From: Javier Celaya <javier.celaya at flexvdi.com>
Signed-off-by: Javier Celaya <javier.celaya at flexvdi.com>
---
qxldod/QxlDod.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/qxldod/QxlDod.cpp b/qxldod/QxlDod.cpp
index 7bd2ead..68e3383 100755
--- a/qxldod/QxlDod.cpp
+++ b/qxldod/QxlDod.cpp
@@ -4792,7 +4792,7 @@ NTSTATUS HwDeviceInterface::AcquireDisplayInfo(DXGK_DISPLAY_INFORMATION& DispInf
{
DispInfo.Width = MIN_WIDTH_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.TargetId = 0;
if (PhysicAddress.QuadPart != 0L)
--
2.7.4
More information about the Spice-devel
mailing list