Skip to content

Commit

Permalink
Fix typo in function name IMG_LoadSizedSVG_RW. (#603)
Browse files Browse the repository at this point in the history
Building the master branch results in the following error:

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_.

Github issue: #602
  • Loading branch information
jabolopes authored Jul 22, 2024
1 parent 75abc56 commit 50cfede
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions img/sdl_image.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ package img
#if !(SDL_IMAGE_VERSION_ATLEAST(2,6,0))
#if defined(WARN_OUTDATED)
#pragma message("SDL_LoadSizedSVG_RW is not supported before SDL2_image 2.6.0")
#pragma message("IMG_LoadSizedSVG_RW is not supported before SDL2_image 2.6.0")
#endif
static inline SDL_Surface* SDL_LoadSizedSVG_RW(SDL_RWops* src, int width, int height)
static inline SDL_Surface* IMG_LoadSizedSVG_RW(SDL_RWops* src, int width, int height)
{
SDL_Unsupported();
return NULL;
Expand Down

0 comments on commit 50cfede

Please sign in to comment.