diff --git a/gogame/draw/draw.go b/gogame/draw/draw.go index c5cc592..eaa65a7 100644 --- a/gogame/draw/draw.go +++ b/gogame/draw/draw.go @@ -1,7 +1,7 @@ package draw import ( - "fmt" +// "fmt" // "math" "github.com/veandco/go-sdl2/sdl" "github.com/veandco/go-sdl2/gfx" @@ -13,7 +13,6 @@ import ( func _aa_render_region(image *sdl.Renderer, _rect *sdl.Rect, col color.Color, rad int) { corners := rect.Inflate(_rect,-2*rad-1, -2*rad-1) - fmt.Println(_rect, corners) topleft := []int{ int(corners.X),int(corners.Y)} topright := []int{int(corners.X+corners.W-1), int(corners.Y)} bottomleft := []int{int(corners.X), int(corners.Y+corners.H-1)} diff --git a/test b/test index 4dd86d8..b78ffda 100755 Binary files a/test and b/test differ diff --git a/test.go b/test.go index 4c9535d..8b2dd7a 100644 --- a/test.go +++ b/test.go @@ -44,6 +44,9 @@ func run() int { rect2 := rect.Rect(3,120,200,30) draw.AARoundRect(screen,&rect2,color.Color{0,213,222,255},10,0, color.Color{0,213,222,255}) + + + // image and ttf fonts display.Flip()