SDL_getrgb

Can someone give on example of SDL_getrgb usage? I ca not undestand why
SDL_getrgb(cur,back->format,r,g,b) crashes the program.
SDL_Surface *back? and cur is uint32? which i get by using getpixel.

Are r, g and b Uint8 *'s?

-bill!On Sun, Oct 06, 2002 at 07:20:26PM +0700, Vladimir Karpenko wrote:

Can someone give on example of SDL_getrgb usage? I ca not undestand why
SDL_getrgb(cur,back->format,r,g,b) crashes the program.
SDL_Surface *back? and cur is uint32? which i get by using getpixel.