Mercurial > sdl-ios-xcode
comparison src/video/SDL_surface.c @ 2328:91e601d9df8b
re: bug#563. checking in some commented out trace code and a fix so that the in testalpha.c the background only flashes when alpha == 255. The problem that is being
fixed is caused by clearing SDL_COPY_RLE_COLORKEY without setting SDL_COPY_RLE_DESIRED in SDL_UnRELSurface.
author | Bob Pendleton <bob@pendleton.com> |
---|---|
date | Fri, 14 Mar 2008 18:17:49 +0000 |
parents | c785543d1843 |
children | c1a390f6a819 |
comparison
equal
deleted
inserted
replaced
2327:7b53a8401195 | 2328:91e601d9df8b |
---|---|
540 if ((src->map->dst != dst) || | 540 if ((src->map->dst != dst) || |
541 (src->map->dst->format_version != src->map->format_version)) { | 541 (src->map->dst->format_version != src->map->format_version)) { |
542 if (SDL_MapSurface(src, dst) < 0) { | 542 if (SDL_MapSurface(src, dst) < 0) { |
543 return (-1); | 543 return (-1); |
544 } | 544 } |
545 /* just here for debugging */ | |
546 /* printf("src = 0x%08X src->flags = %08X src->map->info.flags = %08x\ndst = 0x%08X dst->flags = %08X dst->map->info.flags = %08X\nsrc->map->blit = 0x%08x\n", */ | |
547 /* src, dst->flags, src->map->info.flags, */ | |
548 /* dst, dst->flags, dst->map->info.flags, */ | |
549 /* src->map->blit); */ | |
545 } | 550 } |
546 return (src->map->blit(src, srcrect, dst, dstrect)); | 551 return (src->map->blit(src, srcrect, dst, dstrect)); |
547 } | 552 } |
548 | 553 |
549 | 554 |