chiark / gitweb /
Sorted out the barriers/corners trouble left by r5844. No wonder
authorSimon Tatham <anakin@pobox.com>
Thu, 26 May 2005 17:03:51 +0000 (17:03 +0000)
committerSimon Tatham <anakin@pobox.com>
Thu, 26 May 2005 17:03:51 +0000 (17:03 +0000)
commita0f376efbd50f16694d4c533d4b2836cfbd48d2c
treeb9971e61aa45480cc62306207947d96803471a2a
parent3dc0fce9b8f7ef2a900a9f27d72c6c7accc4e4c0
Sorted out the barriers/corners trouble left by r5844. No wonder
Jacob wasn't able to find a satisfactory fix: the whole area was a
horrid mess. Fortunately, the reason it was a horrid mess was
because the Net drawing routines predated the introduction of clip()
in the frontend interface, and it turns out that clip() makes it
possible to do all this more easily and better. So, a complete
rearchitecting of barrier corners: the corner flags in the
`barriers' array are now gone (and good riddance), and corner
information is computed on the fly so as to take into account the
moving grid edges. In the process I've also updated the corner
mechanism so that a barrier `corner' (really endpoint) is drawn at
the end of _every_ barrier, not just where two meet. This has
changed the appearance of a single isolated barrier, to what I would
have wanted it to look like in the first place but achieving it
without clip() was just too fiddly.

[originally from svn r5846]
[r5844 == 865e8ad6ca3d83ad2a585ceeb1809e9f68c18a20]
net.c