comparison 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
comparison
equal deleted inserted replaced
1705:fc731a7d83ed 1706:1577404809f0
640 int i; 640 int i;
641 641
642 if (identical) { 642 if (identical) {
643 if (src->ncolors <= dst->ncolors) { 643 if (src->ncolors <= dst->ncolors) {
644 /* If an identical palette, no need to map */ 644 /* If an identical palette, no need to map */
645 if (SDL_memcmp(src->colors, dst->colors, src->ncolors * 645 if (src == dst
646 sizeof(SDL_Color)) == 0) { 646 ||
647 (SDL_memcmp
648 (src->colors, dst->colors,
649 src->ncolors * sizeof(SDL_Color)) == 0)) {
647 *identical = 1; 650 *identical = 1;
648 return (NULL); 651 return (NULL);
649 } 652 }
650 } 653 }
651 *identical = 0; 654 *identical = 0;