Jump to content

  • Log In with Google      Sign In   
  • Create Account

Awesome job so far everyone! Please give us your feedback on how our article efforts are going. We still need more finished articles for our May contest theme: Remake the Classics

#ActualSmacker_626

Posted 12 March 2012 - 08:44 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 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.

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

PARTNERS