mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-09 11:29:50 +02:00
Coding Standard
This commit is contained in:
parent
90d4e7bae9
commit
7322cd3ece
1 changed files with 3 additions and 3 deletions
|
@ -245,9 +245,9 @@ void Overlays::deleteOverlay(unsigned int id) {
|
||||||
}
|
}
|
||||||
|
|
||||||
unsigned int Overlays::getOverlayAtPoint(const glm::vec2& point) {
|
unsigned int Overlays::getOverlayAtPoint(const glm::vec2& point) {
|
||||||
glm::vec2 pointCpy = point;
|
glm::vec2 pointCopy = point;
|
||||||
if (OculusManager::isConnected()) {
|
if (OculusManager::isConnected()) {
|
||||||
pointCpy = Application::getInstance()->getApplicationOverlay().screenToOverlay(point);
|
pointCopy = Application::getInstance()->getApplicationOverlay().screenToOverlay(point);
|
||||||
}
|
}
|
||||||
|
|
||||||
QReadLocker lock(&_lock);
|
QReadLocker lock(&_lock);
|
||||||
|
@ -258,7 +258,7 @@ unsigned int Overlays::getOverlayAtPoint(const glm::vec2& point) {
|
||||||
unsigned int thisID = i.key();
|
unsigned int thisID = i.key();
|
||||||
Overlay2D* thisOverlay = static_cast<Overlay2D*>(i.value());
|
Overlay2D* thisOverlay = static_cast<Overlay2D*>(i.value());
|
||||||
if (thisOverlay->getVisible() && thisOverlay->isLoaded() &&
|
if (thisOverlay->getVisible() && thisOverlay->isLoaded() &&
|
||||||
thisOverlay->getBounds().contains(pointCpy.x, pointCpy.y, false)) {
|
thisOverlay->getBounds().contains(pointCopy.x, pointCopy.y, false)) {
|
||||||
return thisID;
|
return thisID;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue