Type out `invalid_orientation' rather than `-1'

This should help make the code clearer.

Signed-off-by: Morten Hustveit <morten.hustveit@gmail.com>