diff options
author | crupest <crupest@outlook.com> | 2022-02-02 15:26:11 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2022-02-02 15:26:11 +0800 |
commit | f0beab8e5f84ba2c5367f7edadebff0af95d1626 (patch) | |
tree | 2d1ba5ba52bef8260c1138801c5fcb382fc383b5 | |
parent | 4a8192bf6b614708d8729cb3a87f938860c229b2 (diff) | |
download | cru-f0beab8e5f84ba2c5367f7edadebff0af95d1626.tar.gz cru-f0beab8e5f84ba2c5367f7edadebff0af95d1626.tar.bz2 cru-f0beab8e5f84ba2c5367f7edadebff0af95d1626.zip |
...
-rw-r--r-- | src/win/graphics/direct/Painter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/win/graphics/direct/Painter.cpp b/src/win/graphics/direct/Painter.cpp index 4af8a09a..26a4bb14 100644 --- a/src/win/graphics/direct/Painter.cpp +++ b/src/win/graphics/direct/Painter.cpp @@ -106,9 +106,9 @@ void D2DPainter::DrawImage(const Point& offset, IImage* image) { CheckValidation(); const auto i = CheckPlatform<Direct2DImage>(image, GetPlatformId()); - ID2D1DeviceContext* device_context; + Microsoft::WRL::ComPtr<ID2D1DeviceContext> device_context; - render_target_->QueryInterface(&device_context); + render_target_->QueryInterface(device_context.GetAddressOf()); device_context->DrawImage(i->GetD2DImage(), Convert(offset)); } |