equal
deleted
inserted
replaced
75 } else { |
75 } else { |
76 ID2D1Factory* m_pDirect2dFactory; |
76 ID2D1Factory* m_pDirect2dFactory; |
77 HRESULT res = D2D1CreateFactory(D2D1_FACTORY_TYPE_SINGLE_THREADED, |
77 HRESULT res = D2D1CreateFactory(D2D1_FACTORY_TYPE_SINGLE_THREADED, |
78 &m_pDirect2dFactory); |
78 &m_pDirect2dFactory); |
79 if (res == S_OK) { |
79 if (res == S_OK) { |
80 m_pDirect2dFactory->GetDesktopDpi(dpiX, dpiY); |
80 // m_pDirect2dFactory->GetDesktopDpi(dpiX, dpiY); |
81 m_pDirect2dFactory->Release(); |
81 m_pDirect2dFactory->Release(); |
82 } |
82 } |
83 } |
83 } |
84 return; |
84 return; |
85 } |
85 } |