[SDL] Per-Surface alpha and SDL_DisplayFormatAlpha

Jonathan Dearborn grimfang4 at hotmail.com
Mon Jun 11 06:54:14 PDT 2007


Hi,
 
When I IMG_Load() a .png I get a per-surface alpha of 255.  This means that the surface is definitely using 255 as fully opaque.  If I blit this surface using SDL_BlitSurface(), it works fine.  Now if I use SDL_DisplayFormatAlpha() on the surface, the per-surface alpha becomes 0.  This apparently means that 0 is fully opaque now.  If I blit it with SDL_BlitSurface(), it still works correctly.  Is there a way that I can use to emulate this functionality of SDL_BlitSurface()?  What can I use to determine if a surface uses 0 or 255 as fully opaque?
 
Jonny D
_________________________________________________________________
Make every IM count. Download Windows Live Messenger and join the i’m Initiative now. It’s free.  
http://im.live.com/messenger/im/home/?source=TAGWL_June07
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20070611/1271acea/attachment.html 


More information about the SDL mailing list