Re: Phix and EuSDL2

new topic     » goto parent     » topic index » view thread      » older message » newer message
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}) 
new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu