gameEvents::screen() is returning an SDL_Surface, are you sure you don't want to return a pointer to an SDL_Surface instead? If you do, that should solve your problem since the code you posted doesn't actually make use of the SDL_Surface.
Any code that actually works with an SDL_Surface will need "SDL.h" included to bring in the definition.
Show differencesHistory of post edits
#1Smacker_626
Posted 12 March 2012 - 08:41 PM
gameEvents::screen() is returning an SDL_Surface, are you sure you don't want to return a pointer to an SDL_Surface instead? If you do, that should solve your problem as the code you posted doesn't actually make use of the SDL_Surface.
Any code that actually works with an SDL_Surface will need to have the appropriate SDL header included so that SDL_Surface will be defined.
Any code that actually works with an SDL_Surface will need to have the appropriate SDL header included so that SDL_Surface will be defined.