Walk-iteration cap; callers pass width + height, the exact bound on |dx| + |dy|.
width + height
|dx| + |dy|