[Spice-devel] [PATCH qxl-wddm-dod 26/26] Removing unnecessary call to BlackOutScreen
Sameeh Jubran
sameeh at daynix.com
Tue Aug 9 15:31:31 UTC 2016
This call to BlackOutScreen is not needed since the actual
display surface is destroyed and created (redrawn) again.
Signed-off-by: Sameeh Jubran <sameeh at daynix.com>
---
qxldod/QxlDod.cpp | 14 ++++++--------
1 file changed, 6 insertions(+), 8 deletions(-)
diff --git a/qxldod/QxlDod.cpp b/qxldod/QxlDod.cpp
index 0fadbab..c69d3f3 100755
--- a/qxldod/QxlDod.cpp
+++ b/qxldod/QxlDod.cpp
@@ -1541,14 +1541,12 @@ NTSTATUS QxlDod::SetSourceModeAndPath(CONST D3DKMDT_VIDPN_SOURCE_MODE* pSourceMo
}
}
- if (NT_SUCCESS(Status))
- {
-
- m_pHWDevice->BlackOutScreen(&m_CurrentModes[pPath->VidPnSourceId]);
-
- // Mark that the next present should be fullscreen so the screen doesn't go from black to actual pixels one dirty rect at a time.
- pCurrentBddMode->Flags.FullscreenPresent = TRUE;
- for (USHORT ModeIndex = 0; ModeIndex < m_pHWDevice->GetModeCount(); ++ModeIndex)
+ if (NT_SUCCESS(Status))
+ {
+
+ // Mark that the next present should be fullscreen so the screen doesn't go from black to actual pixels one dirty rect at a time.
+ pCurrentBddMode->Flags.FullscreenPresent = TRUE;
+ for (USHORT ModeIndex = 0; ModeIndex < m_pHWDevice->GetModeCount(); ++ModeIndex)
{
PVIDEO_MODE_INFORMATION pModeInfo = m_pHWDevice->GetModeInfo(ModeIndex);
if (pCurrentBddMode->DispInfo.Width == pModeInfo->VisScreenWidth &&
--
2.7.0.windows.1
More information about the Spice-devel
mailing list