OSDN Git Service
(root)
/
wintimer
/
wintimer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
3b59e53
)
DWMの半透明ウィンドウとDirect2D描画の共存ができるようになった。
author
SFPGMR
<sfpg@git.sourceforge.jp>
Tue, 26 Apr 2011 11:22:04 +0000
(20:22 +0900)
committer
SFPGMR
<sfpg@git.sourceforge.jp>
Tue, 26 Apr 2011 11:22:04 +0000
(20:22 +0900)
wintimer/sf_windows.cpp
patch
|
blob
|
history
diff --git
a/wintimer/sf_windows.cpp
b/wintimer/sf_windows.cpp
index
0aead2d
..
1aaef5d
100644
(file)
--- a/
wintimer/sf_windows.cpp
+++ b/
wintimer/sf_windows.cpp
@@
-196,9
+196,16
@@
namespace sf
rc.right - rc.left,
rc.bottom - rc.top
);
rc.right - rc.left,
rc.bottom - rc.top
);
+
+ const D2D1_PIXEL_FORMAT format =
+ D2D1::PixelFormat(DXGI_FORMAT_B8G8R8A8_UNORM,
+ D2D1_ALPHA_MODE_PREMULTIPLIED);
+
+ const D2D1_RENDER_TARGET_PROPERTIES target_prop =
+ D2D1::RenderTargetProperties(D2D1_RENDER_TARGET_TYPE_DEFAULT,format);
THROW_IFERR(factory_->CreateHwndRenderTarget(
THROW_IFERR(factory_->CreateHwndRenderTarget(
-
D2D1::RenderTargetProperties()
,
+
target_prop
,
D2D1::HwndRenderTargetProperties(hwnd_, size,D2D1_PRESENT_OPTIONS_IMMEDIATELY),
&render_target_
));
D2D1::HwndRenderTargetProperties(hwnd_, size,D2D1_PRESENT_OPTIONS_IMMEDIATELY),
&render_target_
));