Hi I can send the scourse if you want but since some people find that
rude email me back if you want it I will try to describe it here
ok I get a file stderr.txt that says
Fatal signal: Segmentation Fault (SDL Parachute Deployed)
and doent creat the stdout file that shows my rgb values from printf
so I think it exits when it gets to SDL_GetRGB becouse it works fine
if I comment the line out.
here is the way I wrote the function
Here are the definitions that I put into the function A unsigned char
seemed like the only varieable that was 8 bits long is it supposed to
be something else?
unsigned long pixel=0;
pixel = getpixel(screen,x,y);
unsigned char r,g,b;
and fmt from
SDL_PixelFormat *fmt; now am I supposed to fill that somehow?__________________________________________________
Do you Yahoo!?
Y! Web Hosting - Let the expert host your web site