Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
revert change
Browse files Browse the repository at this point in the history
Signed-off-by: Ian Chen <[email protected]>
iche033 committed Oct 30, 2021

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
1 parent c424f1a commit 973beea
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions ogre2/src/Ogre2Camera.cc
Original file line number Diff line number Diff line change
@@ -259,11 +259,7 @@ VisualPtr Ogre2Camera::VisualAt(const ignition::math::Vector2i &_mousePos)
this->ImageWidth(), this->ImageHeight());
}

#ifdef __APPLE__
float ratio = 1.0f;
#else
float ratio = screenScalingFactor();
#endif

ignition::math::Vector2i mousePos(
static_cast<int>(std::rint(ratio * _mousePos.X())),

0 comments on commit 973beea

Please sign in to comment.