Hi
Im doing a little crap thing for school.
I used the putimage, getimage with XOR etc to put stuff arround the screen. Did it like that :
unsigned char *buff[6]; <<< buffer for the images that are saved
from the screen.
and used the getimage like this:
getimage(x,y,x2,y2,buff[1]);
at that point it saves it to buff 1 and when i use
putimage(x,y,buff[1],COPY_PUT); it goes out ok.
but if i will add another getimage (for another image) it will like destroy all last saves in the buffer and overwrite it over all the array. so when i will use putimage(buff[1]) i wont get the one i saved at the first place, i will get the last thing i saved (even when it is saved on another buff (like buff[5]
Any idea?!
its killing me.
Thanks