resolve bug on ClearRect

This commit is contained in:
legoff.laurent 2010-11-23 17:20:58 +00:00
parent 66148a5bf9
commit d32d0cabac
1 changed files with 1 additions and 1 deletions

View File

@ -76,7 +76,7 @@ func (gc *GraphicContext) Clear() {
func (gc *GraphicContext) ClearRect(x1, y1, x2, y2 int) {
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) {