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; <<< buffer for the images that are saved
from the screen.
and used the getimage like this:
at that point it saves it to buff 1 and when i use
putimage(x,y,buff,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) 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
its killing me.