veandco / go-sdl2

SDL2 binding for Go
https://godoc.org/github.com/veandco/go-sdl2
BSD 3-Clause "New" or "Revised" License
2.2k stars 218 forks source link

Typo in function name IMG_LoadSizedSVG_RW (IMG_... prefix instead of SDL_...) #602

Closed jabolopes closed 1 month ago

jabolopes commented 1 month ago

Go version: go version go1.22.1 linux/amd64 Go-SDL2 version: master SDL2 version: SDL2-2.0.20, SDL2_image-2.0.5 OS: Linux Architecture: 64-bit

Hi,

Building the master branch results in the following error:

# github.com/veandco/go-sdl2/img
go-sdl2/img/sdl_image.go:436:14: could not determine kind of name for C.IMG_LoadSizedSVG_RW

In sdl_image.go:14, instead of SDL_ it should be IMG_.

I can send a PR to fix this.

Thanks, Jose

jabolopes commented 1 month ago

The build error I'm getting it's actually the same as this one: https://github.com/veandco/go-sdl2/commit/c0cec1a83b90acf06cfd4dcb411808adc3a52aff#annotation_20713287762

jabolopes commented 1 month ago

Thank you for merging so quickly!