doPeriodicalTextUpdate is switched off.

This commit is contained in:
rachytski 2011-03-20 12:28:12 +02:00 committed by Alex Zolotarev
parent 48fbec050d
commit 6ef28222f8
3 changed files with 10 additions and 4 deletions

View file

@ -87,7 +87,7 @@
int blitIBSize = pow(2, ceil(log2(10 * sizeof(unsigned short))));
resourceManager = shared_ptr<yg::ResourceManager>(new yg::ResourceManager(
bigVBSize, bigIBSize, 3,
bigVBSize, bigIBSize, 4,
smallVBSize, smallIBSize, 10,
blitVBSize, blitIBSize, 10,
512, 256, 10,

View file

@ -24,7 +24,10 @@ namespace yg
namespace gl
{
TextRenderer::Params::Params()
: m_textTreeAutoClean(true), m_useTextTree(false), m_drawTexts(true)
: m_textTreeAutoClean(true),
m_useTextTree(false),
m_drawTexts(true),
m_doPeriodicalTextUpdate(false)
{}
TextRenderer::TextRenderer(Params const & params)
@ -32,7 +35,8 @@ namespace yg
m_needTextRedraw(false),
m_textTreeAutoClean(params.m_textTreeAutoClean),
m_useTextTree(params.m_useTextTree),
m_drawTexts(params.m_drawTexts)
m_drawTexts(params.m_drawTexts),
m_doPeriodicalTextUpdate(params.m_doPeriodicalTextUpdate)
{}
TextRenderer::TextObj::TextObj(m2::PointD const & pt, string const & txt, uint8_t sz, yg::Color const & c, bool isMasked, yg::Color const & maskColor, double d, bool isFixedFont, bool log2vis)
@ -178,7 +182,7 @@ namespace yg
void TextRenderer::updateActualTarget()
{
if (m_useTextTree)
setNeedTextRedraw(true);
setNeedTextRedraw(m_doPeriodicalTextUpdate);
base_t::updateActualTarget();
}

View file

@ -91,6 +91,7 @@ namespace yg
bool m_textTreeAutoClean;
bool m_useTextTree;
bool m_drawTexts;
bool m_doPeriodicalTextUpdate;
public:
@ -101,6 +102,7 @@ namespace yg
bool m_textTreeAutoClean;
bool m_useTextTree;
bool m_drawTexts;
bool m_doPeriodicalTextUpdate;
Params();
};