resolve bug on ClearRect
This commit is contained in:
parent
66148a5bf9
commit
d32d0cabac
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue