aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2022-05-07 19:40:17 +0800
committercrupest <crupest@outlook.com>2022-05-07 19:40:17 +0800
commit6e2615f632219e9e2ea2b1bf582105d8ad1f77d6 (patch)
tree37b5bbf43d52eabeb0b3999d73e1f99eb41e7b2c
parent71533ce42f23d9d36e92bb315705d91c8b54ec8a (diff)
parent9ef6b6886725178e70aedb64d52c742da1f45328 (diff)
downloadcru-6e2615f632219e9e2ea2b1bf582105d8ad1f77d6.tar.gz
cru-6e2615f632219e9e2ea2b1bf582105d8ad1f77d6.tar.bz2
cru-6e2615f632219e9e2ea2b1bf582105d8ad1f77d6.zip
Merge branch 'create-image' of https://github.com/crupest/cru into create-image
-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);