Don't call obsolete method
ID2D1Factory::GetDesktopDpi() is reported as deprecated.
This commit is contained in:
@@ -3711,7 +3711,7 @@ private:
|
||||
wxCHECK_HRESULT_RET(hr);
|
||||
|
||||
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.
|
||||
// Whenever we render to this bitmap, it is directly rendered to the
|
||||
|
Reference in New Issue
Block a user