iand / draw2d

A Fork of code.google.com/p/draw2d

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fix to build with go weekly/tip

GoogleCodeExporter opened this issue · comments

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

Applied the patch on tip
thanks
;-)

Original comment by legoff.l...@gmail.com on 4 Jul 2011 at 9:15

  • Changed state: Fixed