Carey Brown wrote:I'm still thinking this through, but it seems that you shouldn't be using 'root' when you are inside a recursive method. That you should be passing the current node you are working on down through the recursion.
Campbell Ritchie wrote:Actually it should be right and down rather than down and right.
The (0, 0) point is at the top left of the screen. Carey is assuming screen pixels.