vczh
2022-06-19 22:22:05 -07:00
parent d761109bd5
commit 53f83491c6
3 changed files with 8 additions and 10 deletions
-2
View File
@@ -1347,14 +1347,12 @@ IMPLEMENT_BRUSH_ELEMENT_RENDERER
{\
oldColor=Pair<Color, Color>(element->GetColor1(), element->GetColor2());\
brush=_renderTarget->CreateDirect2DLinearBrush(oldColor.key, oldColor.value);\
brush->AddRef();\
}\
}\
void TRENDERER::DestroyBrush(IWindowsDirect2DRenderTarget* _renderTarget)\
{\
if(_renderTarget && brush)\
{\
brush->Release();\
_renderTarget->DestroyDirect2DLinearBrush(oldColor.key, oldColor.value);\
brush=0;\
}\