Mercurial > sdl-ios-xcode
comparison src/video/SDL_surface.c @ 2260:202ddfd1cfb1
indent
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Fri, 17 Aug 2007 02:55:21 +0000 |
parents | 340942cfda48 |
children | e61ad15a205f |
comparison
equal
deleted
inserted
replaced
2259:1e690901ecd7 | 2260:202ddfd1cfb1 |
---|---|
284 SDL_UnRLESurface(surface, 1); | 284 SDL_UnRLESurface(surface, 1); |
285 | 285 |
286 if (flag) { | 286 if (flag) { |
287 surface->flags |= SDL_SRCALPHA; | 287 surface->flags |= SDL_SRCALPHA; |
288 surface->map->cmod &= 0x00FFFFFF; | 288 surface->map->cmod &= 0x00FFFFFF; |
289 surface->map->cmod |= ((Uint32)value << 24); | 289 surface->map->cmod |= ((Uint32) value << 24); |
290 if (flag & SDL_RLEACCELOK) { | 290 if (flag & SDL_RLEACCELOK) { |
291 surface->flags |= SDL_RLEACCELOK; | 291 surface->flags |= SDL_RLEACCELOK; |
292 } else { | 292 } else { |
293 surface->flags &= ~SDL_RLEACCELOK; | 293 surface->flags &= ~SDL_RLEACCELOK; |
294 } | 294 } |
609 if ((surface_flags & SDL_SRCALPHA) == SDL_SRCALPHA) { | 609 if ((surface_flags & SDL_SRCALPHA) == SDL_SRCALPHA) { |
610 /* Copy over the alpha channel to RGBA if requested */ | 610 /* Copy over the alpha channel to RGBA if requested */ |
611 if (format->Amask) { | 611 if (format->Amask) { |
612 surface->flags &= ~SDL_SRCALPHA; | 612 surface->flags &= ~SDL_SRCALPHA; |
613 } else { | 613 } else { |
614 alpha = (Uint8)(surface->map->cmod >> 24); | 614 alpha = (Uint8) (surface->map->cmod >> 24); |
615 SDL_SetAlpha(surface, 0, 0); | 615 SDL_SetAlpha(surface, 0, 0); |
616 } | 616 } |
617 } | 617 } |
618 | 618 |
619 /* Copy over the image data */ | 619 /* Copy over the image data */ |