[drape] Fix disappearing building POIs when in perspective
Signed-off-by: Konstantin Pastbin <konstantin.pastbin@gmail.com>
This commit is contained in:
parent
55951a28be
commit
a9d85463ab
2 changed files with 3 additions and 3 deletions
|
@ -67,7 +67,7 @@ m2::PointD OverlayHandle::GetPivot(ScreenBase const & screen, bool perspective)
|
|||
result.y += size.y;
|
||||
|
||||
if (perspective)
|
||||
result = screen.PtoP3d(result, -m_pivotZ / screen.GetScale());
|
||||
result = screen.PtoP3d(result, -m_pivotZ);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
@ -163,7 +163,7 @@ m2::RectD OverlayHandle::GetPixelRectPerspective(ScreenBase const & screen) cons
|
|||
if (m_isBillboard)
|
||||
{
|
||||
m2::PointD const pxPivot = GetPivot(screen, false);
|
||||
m2::PointD const pxPivotPerspective = screen.PtoP3d(pxPivot, -m_pivotZ / screen.GetScale());
|
||||
m2::PointD const pxPivotPerspective = screen.PtoP3d(pxPivot, -m_pivotZ);
|
||||
|
||||
m2::RectD pxRectPerspective = GetPixelRect(screen, false);
|
||||
pxRectPerspective.Offset(-pxPivot);
|
||||
|
|
|
@ -75,7 +75,7 @@ std::string TextHandle::GetOverlayDebugInfo()
|
|||
{
|
||||
std::ostringstream out;
|
||||
out << "Text Priority(" << std::hex << std::setw(16) << std::setfill('0') << GetPriority()
|
||||
<< ") " << std::dec << DebugPrint(GetOverlayID()) << " " << strings::ToUtf8(m_text);
|
||||
<< ") " << std::dec << DebugPrint(GetOverlayID());
|
||||
return out.str();
|
||||
}
|
||||
#endif
|
||||
|
|
Reference in a new issue