resolve bug on ClearRect

This commit is contained in:
legoff.laurent 2010-11-23 17:20:58 +00:00
parent 66148a5bf9
commit d32d0cabac

View file

@ -76,7 +76,7 @@ func (gc *GraphicContext) Clear() {
func (gc *GraphicContext) ClearRect(x1, y1, x2, y2 int) { func (gc *GraphicContext) ClearRect(x1, y1, x2, y2 int) {
imageColor := image.NewColorImage(gc.current.fillColor) imageColor := image.NewColorImage(gc.current.fillColor)
draw.Draw(gc.PaintedImage, gc.PaintedImage.Bounds(), imageColor, image.ZP) draw.Draw(gc.PaintedImage, image.Rect(x1, y1, x2, y2), imageColor, image.ZP)
} }
func (gc *GraphicContext) SetStrokeColor(c image.Color) { func (gc *GraphicContext) SetStrokeColor(c image.Color) {