Don't call obsolete method

ID2D1Factory::GetDesktopDpi() is reported as deprecated.
This commit is contained in:
Artur Wieczorek
2021-02-14 00:12:47 +01:00
parent 418ca872ec
commit bce6c0911e

View File

@@ -3711,7 +3711,7 @@ private:
wxCHECK_HRESULT_RET(hr); wxCHECK_HRESULT_RET(hr);
FLOAT dpiX, dpiY; FLOAT dpiX, dpiY;
m_factory->GetDesktopDpi(&dpiX, &dpiY); dpiX = dpiY = (FLOAT)::GetDpiForWindow(m_hwnd);
// Now we set up the Direct2D render target bitmap linked to the swapchain. // Now we set up the Direct2D render target bitmap linked to the swapchain.
// Whenever we render to this bitmap, it is directly rendered to the // Whenever we render to this bitmap, it is directly rendered to the