chiark / gitweb /
Retire the 'middle_face' field in 'struct grid', together with the
authorSimon Tatham <anakin@pobox.com>
Thu, 24 Feb 2011 19:06:48 +0000 (19:06 +0000)
committerSimon Tatham <anakin@pobox.com>
Thu, 24 Feb 2011 19:06:48 +0000 (19:06 +0000)
commit621649491dbc36285c3cfc0cd577ab04a2cbf5dc
tree9613e70209ec47a0767d94ad78b88de947c9165c
parent53f6e4c6cb0b342f37e75c2686c1b542212c5f3e
Retire the 'middle_face' field in 'struct grid', together with the
overly complicated algorithm that uses it to home in on the grid edge
closest to a mouse click. That algorithm is being stressed beyond its
limit by the new grid type, and it's unnecessary anyway given that no
sensibly sized puzzle grid is going to be big enough to make it
prohibitively expensive just to do the trivial approach of iterating
over all edges and finding the closest of the eligible ones.

[originally from svn r9108]
grid.c
grid.h