*** empty log message ***
--HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40265
This commit is contained in:
parent
fbed922ce2
commit
d79384a241
1 changed files with 8 additions and 0 deletions
|
@ -711,6 +711,14 @@ SDL_Surface * SDL_ConvertSurface (SDL_Surface *surface,
|
|||
}
|
||||
}
|
||||
|
||||
/* Only create hw surfaces with alpha channel if hw alpha blits
|
||||
are supported */
|
||||
if(format->Amask != 0 && (flags & SDL_HWSURFACE)) {
|
||||
const SDL_VideoInfo *vi = SDL_GetVideoInfo();
|
||||
if(!vi || !vi->blit_hw_A)
|
||||
flags &= ~SDL_HWSURFACE;
|
||||
}
|
||||
|
||||
/* Create a new surface with the desired format */
|
||||
convert = SDL_CreateRGBSurface(flags,
|
||||
surface->w, surface->h, format->BitsPerPixel,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue