Review fixes

This commit is contained in:
r.kuznetsov 2015-05-26 13:15:22 +03:00
parent 6cf89a7e35
commit 148265a517
2 changed files with 3 additions and 3 deletions

View file

@ -452,7 +452,7 @@ void FrontendRenderer::TapDetected(m2::PointD const & pt, bool isLongTap)
bool FrontendRenderer::SingleTouchFiltration(m2::PointD const & pt, TouchEvent::ETouchType type)
{
float const rectHalfSize = 5;
float const rectHalfSize = 5 * df::VisualParams::Instance().GetVisualScale();
m2::RectD r(-rectHalfSize, -rectHalfSize, rectHalfSize, rectHalfSize);
r.SetCenter(pt);

View file

@ -672,9 +672,9 @@ void TestingEngine::OnFlushData(dp::GLState const & state, drape_ptr<dp::RenderB
drape_ptr<dp::RenderBucket> bucket = move(vao);
bucket->GetBuffer()->Build(m_programManager->GetProgram(state.GetProgramIndex()));
m_scene[state].push_back(move(bucket));
for (size_t i = 0; i < bucket->GetOverlayHandlesCount(); ++i)
for (size_t i = 0; i < m_scene[state].back()->GetOverlayHandlesCount(); ++i)
{
ref_ptr<dp::OverlayHandle> handle = bucket->GetOverlayHandle(i);
ref_ptr<dp::OverlayHandle> handle = m_scene[state].back()->GetOverlayHandle(i);
handle->Update(m_modelView);
if (handle->IsValid())
{