Home | History | Annotate | Download | only in video

Lines Matching full:convert

789  * Convert a surface into the specified pixel format.
794 SDL_Surface *convert;
824 convert = SDL_CreateRGBSurface(flags,
827 if ( convert == NULL ) {
832 if ( format->palette && convert->format->palette ) {
833 SDL_memcpy(convert->format->palette->colors,
836 convert->format->palette->ncolors = format->palette->ncolors;
842 /* Convert colourkeyed surfaces to RGBA if requested */
866 SDL_LowerBlit(surface, &bounds, convert, &bounds);
869 if ( convert != NULL ) {
870 SDL_SetClipRect(convert, &surface->clip_rect);
874 if ( convert != NULL ) {
878 SDL_SetColorKey(convert, cflags|(flags&SDL_RLEACCELOK),
879 SDL_MapRGB(convert->format, keyR, keyG, keyB));
885 if ( convert != NULL ) {
886 SDL_SetAlpha(convert, aflags|(flags&SDL_RLEACCELOK),
897 return(convert);