bug fixed

This commit is contained in:
Nomango 2018-04-03 11:12:30 +08:00
parent 3794cef124
commit fff3e8c370
1 changed files with 3 additions and 7 deletions

View File

@ -52,14 +52,10 @@ void e2d::Collider::_render()
{
if (m_pTransformedGeometry && m_bEnable)
{
// 获取纯色画刷
ID2D1SolidColorBrush * pBrush = Renderer::getSolidColorBrush();
// ´´½¨»­Ë¢
Renderer::getRenderTarget()->CreateSolidColorBrush(
D2D1::ColorF(
m_nColor,
m_fOpacity),
&pBrush
);
// 设置画刷颜色和透明度
pBrush->SetColor(D2D1::ColorF(m_nColor, m_fOpacity));
// 삥齡섯부툭旒竟
Renderer::getRenderTarget()->DrawGeometry(m_pTransformedGeometry, pBrush);
}