[SDL] SMPEG_setdisplay

Ivan Stankovic pokemon at fly.srk.fer.hr
Mon Aug 11 13:50:00 PDT 2003


On Mon, Aug 11, 2003 at 10:03:22PM +0200, Maarten Peeters wrote:
> this code doesn't compile and gives an error like:
> 
> argument of type `void (Foo::)(SDL_Surface*, int, int, unsigned int,
> unsigned int)' does not match `void (*)(SDL_Surface*, int, int, unsigned
> int, unsigned int)'
> 
> How can I solve this? I'm sorry if this question is more C++ oriented
> then SDL oriented. But perhaps it can be solved with a typedef or a
> cast?

Make the Update() function static.

-- 
Ivan Stankovic, pokemon at fly.srk.fer.hr




More information about the SDL mailing list