Commit 8254c37a authored by Evan Stade's avatar Evan Stade Committed by Alexandre Julliard

gdiplus: Updated GdipCloneBrush, GdipDeleteBrush.

parent b9411ba3
...@@ -85,7 +85,16 @@ GpStatus WINGDIPAPI GdipCloneBrush(GpBrush *brush, GpBrush **clone) ...@@ -85,7 +85,16 @@ GpStatus WINGDIPAPI GdipCloneBrush(GpBrush *brush, GpBrush **clone)
(*clone)->gdibrush = CreateSolidBrush((*clone)->lb.lbColor); (*clone)->gdibrush = CreateSolidBrush((*clone)->lb.lbColor);
break; break;
case BrushTypeTextureFill:
*clone = GdipAlloc(sizeof(GpTexture));
if(!*clone) return OutOfMemory;
memcpy(*clone, brush, sizeof(GpTexture));
(*clone)->gdibrush = CreateBrushIndirect(&(*clone)->lb);
break;
default: default:
ERR("not implemented for brush type %d\n", brush->bt);
return NotImplemented; return NotImplemented;
} }
...@@ -385,6 +394,7 @@ GpStatus WINGDIPAPI GdipDeleteBrush(GpBrush *brush) ...@@ -385,6 +394,7 @@ GpStatus WINGDIPAPI GdipDeleteBrush(GpBrush *brush)
break; break;
case BrushTypeSolidColor: case BrushTypeSolidColor:
case BrushTypeLinearGradient: case BrushTypeLinearGradient:
case BrushTypeTextureFill:
default: default:
break; break;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment