Fix gimp_constrain_line() and friends to properly constrain line angles when the image's horizontal and vertical resolutions are different, and dot-for-dot is disabled.
Factorize the code to show status for tools needing to show line information.
... should have been part of last commit.