aboutsummaryrefslogtreecommitdiff
path: root/src/win/graphics/direct/ImageFactory.cpp
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2022-05-07 18:46:08 +0800
committercrupest <crupest@outlook.com>2022-05-07 18:46:08 +0800
commit9ef6b6886725178e70aedb64d52c742da1f45328 (patch)
tree8019f8a5138342ece21fc8f8a3b57fe30974ee01 /src/win/graphics/direct/ImageFactory.cpp
parenta465e2c410c1ae5098d2e073442219bb07a31b9d (diff)
downloadcru-9ef6b6886725178e70aedb64d52c742da1f45328.tar.gz
cru-9ef6b6886725178e70aedb64d52c742da1f45328.tar.bz2
cru-9ef6b6886725178e70aedb64d52c742da1f45328.zip
...
Diffstat (limited to 'src/win/graphics/direct/ImageFactory.cpp')
-rw-r--r--src/win/graphics/direct/ImageFactory.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/win/graphics/direct/ImageFactory.cpp b/src/win/graphics/direct/ImageFactory.cpp
index 76694e30..49fc49e8 100644
--- a/src/win/graphics/direct/ImageFactory.cpp
+++ b/src/win/graphics/direct/ImageFactory.cpp
@@ -53,7 +53,7 @@ std::unique_ptr<IImage> WinImageFactory::CreateBitmap(int width, int height) {
auto d2d_context = graphics_factory_->GetDefaultD2D1DeviceContext();
d2d_context->CreateBitmap(
D2D1::SizeU(width, height),
- D2D1::BitmapProperties(D2D1::PixelFormat(DXGI_FORMAT_R8G8B8A8_TYPELESS,
+ D2D1::BitmapProperties(D2D1::PixelFormat(DXGI_FORMAT_R8G8B8A8_UINT,
D2D1_ALPHA_MODE_STRAIGHT)),
&bitmap);