This tidies up the section of wayobj that checks for diagonal images. Instead of having cases for each direction these are calculated from the various ribi rotations.
Well, I trust you that this is equivalent. Indeed, it is much shorter and hopefully much faster, which is useful especially for the season change. Please submit.
Committed in 6829 - have to say I'm not sure there'll be much speed improvement (other than avoiding some branches maybe?)