src/video/SDL_blit.c
changeset 1052 68f607298ca9
parent 882 9301b429c99f
child 1196 b81f54c3963f
     1.1 --- a/src/video/SDL_blit.c	Sun Apr 17 10:36:03 2005 +0000
     1.2 +++ b/src/video/SDL_blit.c	Sun Apr 17 10:40:41 2005 +0000
     1.3 @@ -280,6 +280,17 @@
     1.4  			video->CheckHWBlit(this, surface, surface->map->dst);
     1.5  		}
     1.6  	}
     1.7 +	
     1.8 +	/* if an alpha pixel format is specified, we can accelerate alpha blits */
     1.9 +	if (((surface->flags & SDL_HWSURFACE) == SDL_HWSURFACE )&&(current_video->displayformatalphapixel)) 
    1.10 +	{
    1.11 +		if ( (surface->flags & SDL_SRCALPHA) ) 
    1.12 +			if ( current_video->info.blit_hw_A ) {
    1.13 +				SDL_VideoDevice *video = current_video;
    1.14 +				SDL_VideoDevice *this  = current_video;
    1.15 +				video->CheckHWBlit(this, surface, surface->map->dst);
    1.16 +			}
    1.17 +	}
    1.18  
    1.19  	/* Get the blit function index, based on surface mode */
    1.20  	/* { 0 = nothing, 1 = colorkey, 2 = alpha, 3 = colorkey+alpha } */