resolve Draw call bug
This commit is contained in:
parent
3b8141ee0f
commit
94ad4b370e
1 changed files with 1 additions and 1 deletions
|
@ -77,7 +77,7 @@ func (gc *ImageGraphicContext) Clear() {
|
||||||
|
|
||||||
func (gc *ImageGraphicContext) ClearRect(x1, y1, x2, y2 int) {
|
func (gc *ImageGraphicContext) ClearRect(x1, y1, x2, y2 int) {
|
||||||
imageColor := image.NewColorImage(gc.Current.FillColor)
|
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) {
|
func (gc *ImageGraphicContext) DrawImage(img image.Image) {
|
||||||
|
|
Loading…
Reference in a new issue