Corrected the horizonOffset computation.

- different horizonOffset values should now cover the whole screen.
Integer calculation doesn't factor in fractions.