forked from organicmaps/organicmaps
Minor performance improvement
This commit is contained in:
parent
3c50882383
commit
d0bf1ede5a
3 changed files with 7 additions and 7 deletions
|
@ -262,7 +262,7 @@ void InformationDisplay::drawDebugInfo(DrawerYG * drawer)
|
|||
drawer->screen()->drawText(m_fontDesc,
|
||||
pos,
|
||||
yg::EPosAboveRight,
|
||||
out.str().c_str(),
|
||||
out.str(),
|
||||
yg::maxDepth,
|
||||
false);
|
||||
}
|
||||
|
@ -289,7 +289,7 @@ void InformationDisplay::drawMemoryWarning(DrawerYG * drawer)
|
|||
drawer->screen()->drawText(m_fontDesc,
|
||||
pos,
|
||||
yg::EPosAboveRight,
|
||||
out.str().c_str(),
|
||||
out.str(),
|
||||
yg::maxDepth,
|
||||
false);
|
||||
|
||||
|
@ -464,7 +464,7 @@ void InformationDisplay::drawBenchmarkInfo(DrawerYG * pDrawer)
|
|||
pDrawer->screen()->drawText(m_fontDesc,
|
||||
pos,
|
||||
yg::EPosAboveRight,
|
||||
out.str().c_str(),
|
||||
out.str(),
|
||||
yg::maxDepth,
|
||||
false
|
||||
);
|
||||
|
|
|
@ -292,7 +292,7 @@ void Ruler::draw(yg::gl::OverlayRenderer * s, math::Matrix<double, 3, 3> const &
|
|||
s->drawText(m_fontDesc,
|
||||
m_path[2] + m2::PointD(-7, -3),
|
||||
yg::EPosAboveLeft,
|
||||
m_scalerText.c_str(),
|
||||
m_scalerText,
|
||||
depth(),
|
||||
false);
|
||||
else
|
||||
|
@ -300,14 +300,14 @@ void Ruler::draw(yg::gl::OverlayRenderer * s, math::Matrix<double, 3, 3> const &
|
|||
s->drawText(m_fontDesc,
|
||||
m_path[1] + m2::PointD(7, -3),
|
||||
yg::EPosAboveRight,
|
||||
m_scalerText.c_str(),
|
||||
m_scalerText,
|
||||
depth(),
|
||||
false);
|
||||
else
|
||||
s->drawText(m_fontDesc,
|
||||
(m_path[1] + m_path[2]) * 0.5 + m2::PointD(0, -3),
|
||||
yg::EPosAbove,
|
||||
m_scalerText.c_str(),
|
||||
m_scalerText,
|
||||
depth(),
|
||||
false);
|
||||
}
|
||||
|
|
|
@ -201,7 +201,7 @@ void TileRenderer::DrawTile(core::CommandsQueue::Environment const & env,
|
|||
drawer->screen()->drawText(yg::FontDesc(12, yg::Color(0, 0, 0, 255), true),
|
||||
renderRect.Center(),
|
||||
yg::EPosCenter,
|
||||
out.str().c_str(),
|
||||
out.str(),
|
||||
0,
|
||||
false);*/
|
||||
frameScreen.SetFromRect(m2::AnyRectD(rectInfo.m_rect));
|
||||
|
|
Loading…
Add table
Reference in a new issue