I've written a paint program in DOS using the line() function from graphics.h to trace and draw the mouse movements to the screen when the mouse is clicked, as is standard in any paint program. In an attempt to use setlinestyle() to set my line width to make the line drawn bigger or smaller, my program runs but doesn't change the line style.

My method is the following:

Code:
//...
int _linesize = 1; /*Default, 1px line width. Works fine. */
setlinestyle(SOLID_LINE,1,_linesize);
//...
if(ifclickarea(100,100,250,150,1) == 1) {
 _linesize++;
setlinestyle(SOLID_LINE,1,_linesize); /*Should set line width to two after the button is clicked, but does not.*/
}
//...
I'm just about ready to write my own graphics library... Borland's makes me angry...

Any help would be appreciated.