Fix Int overflow in screen coordinate calculation