--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402622
This commit is contained in:
Sam Lantinga 2007-08-17 02:55:21 +00:00
parent 8f8c80446d
commit 4d9ae37508
5 changed files with 9 additions and 9 deletions

View file

@ -82,7 +82,7 @@ SDL_SoftBlit(SDL_Surface * src, SDL_Rect * srcrect,
info.dst = dst->format; info.dst = dst->format;
info.ckey = src->map->ckey; info.ckey = src->map->ckey;
info.cmod = src->map->cmod; info.cmod = src->map->cmod;
RunBlit = (SDL_loblit)src->map->data; RunBlit = (SDL_loblit) src->map->data;
/* Run the actual software blit */ /* Run the actual software blit */
RunBlit(&info); RunBlit(&info);

View file

@ -286,7 +286,7 @@ SDL_SetAlpha(SDL_Surface * surface, Uint32 flag, Uint8 value)
if (flag) { if (flag) {
surface->flags |= SDL_SRCALPHA; surface->flags |= SDL_SRCALPHA;
surface->map->cmod &= 0x00FFFFFF; surface->map->cmod &= 0x00FFFFFF;
surface->map->cmod |= ((Uint32)value << 24); surface->map->cmod |= ((Uint32) value << 24);
if (flag & SDL_RLEACCELOK) { if (flag & SDL_RLEACCELOK) {
surface->flags |= SDL_RLEACCELOK; surface->flags |= SDL_RLEACCELOK;
} else { } else {
@ -611,7 +611,7 @@ SDL_ConvertSurface(SDL_Surface * surface,
if (format->Amask) { if (format->Amask) {
surface->flags &= ~SDL_SRCALPHA; surface->flags &= ~SDL_SRCALPHA;
} else { } else {
alpha = (Uint8)(surface->map->cmod >> 24); alpha = (Uint8) (surface->map->cmod >> 24);
SDL_SetAlpha(surface, 0, 0); SDL_SetAlpha(surface, 0, 0);
} }
} }