diff --git a/draw2d/image.go b/draw2d/image.go index 48dc79f..47a3507 100644 --- a/draw2d/image.go +++ b/draw2d/image.go @@ -77,7 +77,7 @@ func (gc *ImageGraphicContext) Clear() { func (gc *ImageGraphicContext) ClearRect(x1, y1, x2, y2 int) { imageColor := image.NewColorImage(gc.Current.FillColor) - draw.Draw(gc.img, image.Rect(x1, y1, x2, y2), imageColor, image.ZP) + draw.Draw(gc.img, image.Rect(x1, y1, x2, y2), imageColor, image.ZP, draw.Over) } func (gc *ImageGraphicContext) DrawImage(img image.Image) {