-
Notifications
You must be signed in to change notification settings - Fork 107
Closed
Description
What steps will reproduce the problem?
1. cd go/src/pkg/draw2d.googlecode.com/hg/draw2d
2. hg pull && hg update
3. goinstall .
What is the expected output? What do you see instead?
Expected: no output
Instead: image.go:80: not enough arguments in call to draw.Draw
What version of the product are you using? On what operating system?
Using go tip and draw2d tip
Please provide any additional information below.
Fix:
diff -r dfc88bbb5ba2 draw2d/image.go
--- a/draw2d/image.go Wed Jun 08 00:31:06 2011 +0200
+++ b/draw2d/image.go Sun Jul 03 02:14:46 2011 +0200
@@ -77,7 +77,7 @@
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) {
Original issue reported on code.google.com by wouter.o...@gmail.com on 3 Jul 2011 at 12:27
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels