added some functions from sdl_pixels.h