[Spice-devel] [PATCH v3 3/4] qxl-wddm-dod: Allow easy modification of fallback setting
Yuri Benditovich
yuri.benditovich at daynix.com
Mon Feb 6 22:29:22 UTC 2017
Signed-off-by: Yuri Benditovich <yuri.benditovich at daynix.com>
---
qxldod/QxlDod.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/qxldod/QxlDod.cpp b/qxldod/QxlDod.cpp
index 469fdea..70c1846 100755
--- a/qxldod/QxlDod.cpp
+++ b/qxldod/QxlDod.cpp
@@ -4831,10 +4831,10 @@ NTSTATUS HwDeviceInterface::AcquireDisplayInfo(DXGK_DISPLAY_INFORMATION& DispInf
if (DispInfo.Width == 0)
{
+ DispInfo.ColorFormat = D3DDDIFMT_R8G8B8;
DispInfo.Width = MIN_WIDTH_SIZE;
DispInfo.Height = MIN_HEIGHT_SIZE;
- DispInfo.Pitch = MIN_WIDTH_SIZE * BPPFromPixelFormat(D3DDDIFMT_R8G8B8) / 8;
- DispInfo.ColorFormat = D3DDDIFMT_R8G8B8;
+ DispInfo.Pitch = DispInfo.Width * BPPFromPixelFormat(DispInfo.ColorFormat) / BITS_PER_BYTE;
DispInfo.TargetId = 0;
}
return Status;
--
2.7.0.windows.1
More information about the Spice-devel
mailing list