Fix screen offset computation.