From 94ad4b370e03b6f486c8b72634313121509ef959 Mon Sep 17 00:00:00 2001 From: "legoff.laurent" Date: Mon, 4 Jul 2011 23:13:02 +0200 Subject: [PATCH] resolve Draw call bug --- draw2d/image.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {