Hey, I am sorta new a coding for PSP, so I was wondering if someone more experienced could have a look at this code for a PSP Paint app...
Without furthur ado here is my code
EDIT: my link wasnt allowed, so I'll attach it instead
EDIT2: the file is too big to attach (334kb, like wtf?!)
so ill just have to post the link and hope spambots dont rape my server
Spoiler for Link to Code:
P.S. ignore the code::blocks files, i use eclipse now, because i got debugging working on it
Most of the trouble i have been having is with double buffering, as well as some problems with loading the image, which was never a problem before. Ideally i would like to make the images, programatically, but i thought it best to load them as images for now, until i get the double buffering under control.
Another problem is that when the image is displayed for selecting the colour, it overwrites the drawing canvas, so ideally this should be done by making another buffer, to load the image to, maintaining the original canvas, but i dont now how to do this...
some people i spoke to an IRC channel, said the source of all my problems was using the graphic.c library, and recommended another, which i havent been able to get working at all....
Anyways, I would appreciate an explaination of a solution, rather than just it done for me