vczh
2022-06-07 16:42:44 -07:00
parent 6ea6033501
commit d761109bd5
+2
View File
@@ -1347,12 +1347,14 @@ 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;\
}\