[SDL] IMG_Load and SDL_Surface flags

Torsten Giebl wizard at syntheticsw.com
Thu Dec 20 16:45:36 PST 2007


Hello !


> You should note that SDL_SWSURFACE isn't really a flag at all, it is
> defined as 0.
> 
> To test whether a surface is in hardware is
> 
>> if( my_surface->flags & SDL_HWSURFACE )

Better is to test :

if( (my_surface->flags & SDL_HWSURFACE) == SDL_HWSURFACE )


CU



More information about the SDL mailing list