[SDL] Re: SDL_ttf font blitting problem (ALPHA issue)

Ken Rogoway Ken at HomebrewSoftware.com
Fri May 21 22:57:28 PDT 2004


Ken Rogoway <Ken <at> HomebrewSoftware.com> writes:

If you use this instead it works great!

	pTextCopy = SDL_CreateRGBSurface( SDL_SWSURFACE,
					text->w,
					text->h,
					32,
					0xFF000000,
					0x00FF0000,
					0x0000FF00,
					0x000000FF );

    SDL_SetAlpha( text,0,0xFF );
    SDL_SetAlpha( pTextCopy,SDL_SRCALPHA,SDL_ALPHA_TRANSPARENT );

    SDL_BlitSurface( text,NULL,pTextCopy,NULL );







More information about the SDL mailing list