forked from organicmaps/organicmaps-tmp
Debug output fixed.
This commit is contained in:
parent
8ce96397b0
commit
2928862bac
2 changed files with 4 additions and 5 deletions
|
@ -238,12 +238,12 @@ void OverlayTree::InsertHandle(ref_ptr<OverlayHandle> handle,
|
|||
Erase(*it);
|
||||
|
||||
#ifdef DEBUG_OVERLAYS_OUTPUT
|
||||
LOG(LINFO, ("Displace (2):", handle->GetOverlayDebugInfo(), "->", it->GetOverlayDebugInfo()));
|
||||
LOG(LINFO, ("Displace (2):", handle->GetOverlayDebugInfo(), "->", (*it)->GetOverlayDebugInfo()));
|
||||
#endif
|
||||
|
||||
#ifdef COLLECT_DISPLACEMENT_INFO
|
||||
m_displacementInfo.emplace_back(DisplacementData(handle->GetExtendedPixelRect(modelView).Center(),
|
||||
it->GetExtendedPixelRect(modelView).Center(),
|
||||
(*it)->GetExtendedPixelRect(modelView).Center(),
|
||||
dp::Color(0, 0, 255, 255)));
|
||||
#endif
|
||||
|
||||
|
@ -260,7 +260,7 @@ void OverlayTree::InsertHandle(ref_ptr<OverlayHandle> handle,
|
|||
DeleteHandle(rivalHandle);
|
||||
|
||||
#ifdef DEBUG_OVERLAYS_OUTPUT
|
||||
LOG(LINFO, ("Displace (3):", handle->GetOverlayDebugInfo(), "->", handleToDelete->GetOverlayDebugInfo()));
|
||||
LOG(LINFO, ("Displace (3):", handle->GetOverlayDebugInfo(), "->", rivalHandle->GetOverlayDebugInfo()));
|
||||
#endif
|
||||
|
||||
#ifdef COLLECT_DISPLACEMENT_INFO
|
||||
|
|
|
@ -124,8 +124,7 @@ void RenderBucket::RenderDebug(ScreenBase const & screen) const
|
|||
if (!screen.PixelRect().IsIntersect(handle->GetPixelRect(screen, false)))
|
||||
continue;
|
||||
|
||||
OverlayHandle::Rects rects;
|
||||
handle->GetExtendedPixelShape(screen, rects);
|
||||
OverlayHandle::Rects const & rects = handle->GetExtendedPixelShape(screen);
|
||||
for (auto const & rect : rects)
|
||||
{
|
||||
if (screen.isPerspective() && !screen.PixelRectIn3d().IsIntersect(m2::RectD(rect)))
|
||||
|
|
Loading…
Add table
Reference in a new issue