We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa72387 commit 4668567Copy full SHA for 4668567
src/Microsoft.DotNet.Wpf/src/WpfGfx/core/hw/InteropDeviceBitmap.cpp
@@ -845,6 +845,10 @@ CInteropDeviceBitmap::GetDisplayFromUserDevice(
845
IFC(pID3DUserDevice->GetDirect3D(&pID3DUserObject));
846
847
HMONITOR hMon = pID3DUserObject->GetAdapterMonitor(m_uAdapter);
848
+ if(hMon == NULL)
849
+ {
850
+ hMon = ::MonitorFromWindow(NULL, MONITOR_DEFAULTTOPRIMARY);
851
+ }
852
853
g_DisplayManager.GetCurrentDisplaySet(&pDisplaySet);
854
UINT uDisplayIndex;
0 commit comments