aboutsummaryrefslogtreecommitdiff
path: root/include/cru/win/graphics/direct/WindowRenderTarget.hpp
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2022-02-02 21:25:59 +0800
committercrupest <crupest@outlook.com>2022-02-02 21:25:59 +0800
commit35b72a2f3215cf9644508581f0af8bde2ed753a8 (patch)
tree0ce8073e4c8e86ef108b14983d12166dd708bf3b /include/cru/win/graphics/direct/WindowRenderTarget.hpp
parent41623c6ad6f42ca5d6e9a38061f809929641e5c6 (diff)
downloadcru-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.hpp4
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_;
};