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.