banthar / Go-SDL

Go bindings for SDL
218 stars 68 forks source link

Tidy up the surface creation functions. #38

Closed DeedleFake closed 13 years ago

DeedleFake commented 13 years ago

I replaced CreateSurfaceFromImageNRGBA() and CreateSurfaceFromImageRGBA() with just CreateSurfaceFromImage(), which should be able to handle any type of image.Image.

I also added a binding for SDL_CreateRGBSurfaceFrom() and ran gofmt.