[SDL] IMG_Load and SDL_Surface flags
Carlos Alvarez
sigzegv at gmail.com
Tue Dec 18 15:23:03 PST 2007
I load an image with IMG_load from SDL_image library. I am trying to find if
IMG_Load returns a SWSURFACE or a HWSURFACE.
I type :
if( my_surface->flags & SDL_SWSURFACE )...
or
if( my_surface->flags & SDL_HWSURFACE )...
Both cases return false... because flags is 0
Is it a bug or a feature ?????
Just another question :
Does IMG_Load calls SDL_DisplayFormat before returning the surface ?
thnx :)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20071219/2a6edefe/attachment.htm
More information about the SDL
mailing list