comparison src/SDL_compat.c @ 1681:80a5e6a4e1e2 SDL-1.3

Working on paletted display and texture support (two different issues)
author Sam Lantinga <slouken@libsdl.org>
date Thu, 15 Jun 2006 07:07:07 +0000
parents 9488fca10677
children 7ae8018b2e5d
comparison
equal deleted inserted replaced
1680:9488fca10677 1681:80a5e6a4e1e2
664 664
665 if (screen == SDL_VideoSurface) { 665 if (screen == SDL_VideoSurface) {
666 SDL_SetTexturePalette(SDL_VideoTexture, 666 SDL_SetTexturePalette(SDL_VideoTexture,
667 SDL_VideoSurface->format->palette->colors, 0, 667 SDL_VideoSurface->format->palette->colors, 0,
668 SDL_VideoSurface->format->palette->ncolors); 668 SDL_VideoSurface->format->palette->ncolors);
669 SDL_SetDisplayPalette(SDL_VideoSurface->format->palette->colors, 0,
670 SDL_VideoSurface->format->palette->ncolors);
669 } 671 }
670 672
671 return gotall; 673 return gotall;
672 } 674 }
673 675