From c64c53c3ffe365c0af5d4571d9eda8600a26ab8d Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Mon, 7 Jun 2004 04:03:02 +0000 Subject: [PATCH] debug --- stepmania/src/SDL_utils.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/stepmania/src/SDL_utils.cpp b/stepmania/src/SDL_utils.cpp index 956232f969..ec631cbb46 100644 --- a/stepmania/src/SDL_utils.cpp +++ b/stepmania/src/SDL_utils.cpp @@ -821,6 +821,8 @@ static void blit_generic( SDL_Surface *src_surf, const SDL_Surface *dst_surf, in while( x++ < width ) { unsigned int pixel = decodepixel((Uint8 *) src, src_surf->format->BytesPerPixel); + ASSERT_M( (int) pixel < src_surf->format->palette->ncolors, ssprintf("%i %i", + pixel, src_surf->format->palette->ncolors) ); Uint8 colors[4]; /* Convert pixel to the destination RGBA. */