tested draw.Line

This commit is contained in:
cuu
2018-06-06 10:16:09 +08:00
parent 26f18da0d8
commit 2a2e793bc9
5 changed files with 118 additions and 16 deletions

View File

@@ -4,6 +4,6 @@ import (
"github.com/veandco/go-sdl2/sdl"
)
func Rect(top ,left, width,height int32) sdl.Rect {
return sdl.Rect{top,left,width,height}
func Rect(top ,left, width,height int) sdl.Rect {
return sdl.Rect{int32(top),int32(left),int32(width),int32(height)}
}