Re: Phix and EuSDL2
- Posted by petelomax Apr 04, 2021
- 767 views
ChrisB said...
too many parameters in call_func/proc()
xSDL_SaveBMP_RW = define_c_func(sdl2,"+SDL_SaveBMP_RW",{C_POINTER,C_POINTER,C_INT},C_INT), return xSDL_SaveBMP_RW(surf, rwops, 1) --<--line 1490
It is trying to use xSDL_SaveBMP_RW as a routine_id as opposed to a define_c_func-id.
As of 0.8.1 you can omit a call_func(), but you are trying to omit a c_func(). Instead try:
return c_func(xSDL_SaveBMP_RW,{surf, rwops, 1})