Kuba,
>> On the contrary, I don't really see what the code is doing---all of
>> it appears to be doing nothing more than what is already done in the
>> redraw code. I commented out everything except for the GXcopy set and
>> redrawtext() call at the end, and I can't see that anything has changed.
>> I assume that it is just redundant or unnecessary code.
>
> Well, I won't complain about that of course, I'm all for getting rid of
> useless code.
> The question is: does anything use the areawin->origin that was set there?
> That's the
> real deal. If nothing uses it, then the code should go. I've disabled it in
> an #if 0 block, just
> in case.
As I said, I commented out the block of code myself, including the part
which sets areawin->origin, and saw nothing amiss. I think the code
should go.
> OK, that makes sense. Am I right that ULength() deals with user coordinates
> when given a 0.0 scale, and window coordinates otherwise?
According to my marginal notes and memory, yes. Ugh, what a hack.
---Tim
+--------------------------------+-------------------------------------+
| Dr. R. Timothy Edwards (Tim) | email: [email protected] |
| Open Circuit Design, Inc. | web: http://opencircuitdesign.com |
| 22815 Timber Creek Lane | phone: (301) 528-5030 |
| Clarksburg, MD 20871-4001 | cell: (240) 401-0616 |
+--------------------------------+-------------------------------------+
_______________________________________________
Xcircuit-dev mailing list
[email protected]
http://www.opencircuitdesign.com/mailman/listinfo/xcircuit-dev