#: 18990 S12/OS9/68000 (OSK)
04-Oct-93 01:26:50
Sb: circadd
Fm: LARRY OLSON 72227,3467
To: John R. Wainwright 72517,676
John,
I just downloaded your Circadd program, it looks good, I'll be sending you
an order.
The real reason for the message is that I see you were also bit by the line
drawing bug in KWindows. I also ran into this problem of non-uniform boxes in
some of the programs where I wanted to draw a grid. I didn't find a solution,
but I did find a fix that would work in some cases.
The fix involves using the LSet function. Don't ask me why, but with
LSet = 0, you can't draw a uniform grid, but by setting LSet to 1 or 2
the grid lines come out uniform.
The way I use this is to:
LSet(path, 1); /* Set to AND (or 2 to OR) */
/* Do line drawing here */
LSet(path, 0); /* Reset back to no logic */
The only problem with this method is that you sometimes run into different
color lines than you thought when you AND or OR with the background.
Depending on the colors, this might or might not be a problem.
I hope this helps
Larry Olson
|