forked from organicmaps/organicmaps
minor fixes.
This commit is contained in:
parent
1eeb5e9ca4
commit
9b48dd5051
4 changed files with 6 additions and 6 deletions
|
@ -409,6 +409,7 @@ size_t InformationDisplay::s_logSize = 10;
|
|||
my::LogMessageFn InformationDisplay::s_oldLogFn = 0;
|
||||
threads::Mutex s_logMutex;
|
||||
WindowHandle * InformationDisplay::s_windowHandle = 0;
|
||||
size_t s_msgNum = 0;
|
||||
|
||||
void InformationDisplay::logMessage(my::LogLevel level, my::SrcPoint const & srcPoint, string const & msg)
|
||||
{
|
||||
|
@ -416,13 +417,11 @@ void InformationDisplay::logMessage(my::LogLevel level, my::SrcPoint const & src
|
|||
threads::MutexGuard guard(s_logMutex);
|
||||
ostringstream out;
|
||||
char const * names[] = { "DEBUG", "INFO", "WARNING", "ERROR", "CRITICAL" };
|
||||
out << "LOG ";
|
||||
out << s_msgNum++ << ":";
|
||||
if (level >= 0 && level <= static_cast<int>(ARRAY_SIZE(names)))
|
||||
out << names[level];
|
||||
else
|
||||
out << level;
|
||||
// out << " " << srcPoint.FileName() << ":" << srcPoint.Line() << " " << srcPoint.Function()
|
||||
// << "() " << msg << endl;
|
||||
out << msg << endl;
|
||||
s_log.push_back(out.str());
|
||||
while (s_log.size() > s_logSize)
|
||||
|
|
|
@ -27,7 +27,7 @@ namespace yg
|
|||
void AreaRenderer::endFrame()
|
||||
{
|
||||
if (isDebugging())
|
||||
LOG(LINFO, ("Drawing ", m_areasCount, " areas, ", m_trianglesCount, " triangles total"));
|
||||
LOG(LINFO, ("drawing ", m_areasCount, " areas, ", m_trianglesCount, " triangles total"));
|
||||
base_t::endFrame();
|
||||
}
|
||||
|
||||
|
|
|
@ -136,7 +136,8 @@ namespace yg
|
|||
if (isDebugging())
|
||||
{
|
||||
for (size_t i = 0; i < m_pipelines.size(); ++i)
|
||||
LOG(LINFO, ("pipeline #", i, " vertices=", m_pipelines[i].m_verticesDrawn, ", triangles=", m_pipelines[i].m_indicesDrawn / 3));
|
||||
if ((m_pipelines[i].m_verticesDrawn != 0) || (m_pipelines[i].m_indicesDrawn != 0))
|
||||
LOG(LINFO, ("pipeline #", i, " vertices=", m_pipelines[i].m_verticesDrawn, ", triangles=", m_pipelines[i].m_indicesDrawn / 3));
|
||||
}
|
||||
|
||||
base_t::endFrame();
|
||||
|
|
|
@ -259,7 +259,7 @@ namespace yg
|
|||
void PathRenderer::endFrame()
|
||||
{
|
||||
if (isDebugging())
|
||||
LOG(LINFO, ("Drawing ", m_pathCount, " pathes, ", m_pointsCount, " points total"));
|
||||
LOG(LINFO, ("drawing ", m_pathCount, " pathes, ", m_pointsCount, " points total"));
|
||||
|
||||
base_t::endFrame();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue