*** empty log message ***
authorSam Lantinga <slouken@libsdl.org>
Mon, 14 Jan 2002 19:20:39 +0000
changeset 264c9cd3b564e4b
parent 263 63e391bd7085
child 265 35d9c8a5aa10
*** empty log message ***
src/video/SDL_surface.c
     1.1 --- a/src/video/SDL_surface.c	Thu Jan 10 02:00:29 2002 +0000
     1.2 +++ b/src/video/SDL_surface.c	Mon Jan 14 19:20:39 2002 +0000
     1.3 @@ -711,6 +711,14 @@
     1.4  		}
     1.5  	}
     1.6  
     1.7 +	/* Only create hw surfaces with alpha channel if hw alpha blits
     1.8 +	   are supported */
     1.9 +	if(format->Amask != 0 && (flags & SDL_HWSURFACE)) {
    1.10 +		const SDL_VideoInfo *vi = SDL_GetVideoInfo();
    1.11 +		if(!vi || !vi->blit_hw_A)
    1.12 +			flags &= ~SDL_HWSURFACE;
    1.13 +	}
    1.14 +
    1.15  	/* Create a new surface with the desired format */
    1.16  	convert = SDL_CreateRGBSurface(flags,
    1.17  				surface->w, surface->h, format->BitsPerPixel,