diff options
author | crupest <crupest@outlook.com> | 2022-02-02 21:25:59 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2022-02-02 21:25:59 +0800 |
commit | 35b72a2f3215cf9644508581f0af8bde2ed753a8 (patch) | |
tree | 0ce8073e4c8e86ef108b14983d12166dd708bf3b /include/cru/win/graphics/direct/WindowRenderTarget.hpp | |
parent | 41623c6ad6f42ca5d6e9a38061f809929641e5c6 (diff) | |
download | cru-35b72a2f3215cf9644508581f0af8bde2ed753a8.tar.gz cru-35b72a2f3215cf9644508581f0af8bde2ed753a8.tar.bz2 cru-35b72a2f3215cf9644508581f0af8bde2ed753a8.zip |
...
Diffstat (limited to 'include/cru/win/graphics/direct/WindowRenderTarget.hpp')
-rw-r--r-- | include/cru/win/graphics/direct/WindowRenderTarget.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/cru/win/graphics/direct/WindowRenderTarget.hpp b/include/cru/win/graphics/direct/WindowRenderTarget.hpp index 4774a1d3..6b775241 100644 --- a/include/cru/win/graphics/direct/WindowRenderTarget.hpp +++ b/include/cru/win/graphics/direct/WindowRenderTarget.hpp @@ -18,7 +18,7 @@ class CRU_WIN_GRAPHICS_DIRECT_API D2DWindowRenderTarget : public Object { return factory_; } - ID2D1DeviceContext* GetD2D1DeviceContext() { + ID2D1DeviceContext1* GetD2D1DeviceContext() { return d2d1_device_context_.Get(); } @@ -36,7 +36,7 @@ class CRU_WIN_GRAPHICS_DIRECT_API D2DWindowRenderTarget : public Object { private: DirectGraphicsFactory* factory_; HWND hwnd_; - Microsoft::WRL::ComPtr<ID2D1DeviceContext> d2d1_device_context_; + Microsoft::WRL::ComPtr<ID2D1DeviceContext1> d2d1_device_context_; Microsoft::WRL::ComPtr<IDXGISwapChain1> dxgi_swap_chain_; Microsoft::WRL::ComPtr<ID2D1Bitmap1> target_bitmap_; }; |