Mercurial > sdl-ios-xcode
diff src/video/SDL_pixels.c @ 1706:1577404809f0 SDL-1.3
Added a multi-window version of testsprite using the new API.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sat, 24 Jun 2006 16:51:01 +0000 |
parents | 396a35389351 |
children |
line wrap: on
line diff
--- a/src/video/SDL_pixels.c Sat Jun 24 04:31:42 2006 +0000 +++ b/src/video/SDL_pixels.c Sat Jun 24 16:51:01 2006 +0000 @@ -642,8 +642,11 @@ if (identical) { if (src->ncolors <= dst->ncolors) { /* If an identical palette, no need to map */ - if (SDL_memcmp(src->colors, dst->colors, src->ncolors * - sizeof(SDL_Color)) == 0) { + if (src == dst + || + (SDL_memcmp + (src->colors, dst->colors, + src->ncolors * sizeof(SDL_Color)) == 0)) { *identical = 1; return (NULL); }