Now that Tux Paint is in 24-bit mode, I wonder what happens if you have a 16-bit display and you remove these lines from getpixel() and putpixel().
else if (bpp == 2) *(Uint16 *)p = pixel; else if (bpp == 2) /* 16-bit display */ pixel = *(Uint16 *)p; I also wonder what happens if SDL_MapRGB becomes a macro that ignores bit depth. Does it work OK? BTW, it would be nice if getpixel() would simply grab the nearest pixel when the dimensions are out of bounds. This would be great for a smudge tool. _______________________________________________ Tuxpaint-dev mailing list [EMAIL PROTECTED] http://tux4kids.net/mailman/listinfo/tuxpaint-dev