[SDL] Help with SDL_Convert

Lilith Calbridge lilith at dcccd.edu
Mon May 14 09:38:32 PDT 2007


I've used this function before but not so heavily that I might have
cause massive memory leaks.  But now I'll be using it a lot, so I
thought I'd get a firm description of what's going on here.

The name SDL_Convert implies that one surface is being converted to
another's format.  But in fact it returns a new surface.  My situation
is that I have a surface that's a fraction of the size of my display
surface.  But apparently I need to convert the surface so that when I
blit it to the display surface it matches format.  Does that mean that
surface designated as "src" in the documentation should be the
non-display surface that I need converted to the display surface format?
 Notably the format is not take from src, necessarily.

Please unconfuse me.

-- 
Lilith


More information about the SDL mailing list