[android] Enabled text filtering

This commit is contained in:
Alex Zolotarev 2011-07-24 17:27:27 +03:00 committed by Alex Zolotarev
parent 655073f128
commit 0b6a8f09d4
3 changed files with 11 additions and 2 deletions

View file

@ -50,6 +50,7 @@ shared_ptr<DrawerYG> CreateDrawer(shared_ptr<yg::ResourceManager> pRM)
p.m_resourceManager = pRM;
p.m_glyphCacheID = pRM->guiThreadGlyphCacheID();
p.m_frameBuffer = make_shared_ptr(new yg::gl::FrameBuffer(true));
p.m_useOverlay = true;
return make_shared_ptr(new DrawerYG(pl.SkinName(), p));
}

View file

@ -3,6 +3,7 @@
#include "render_policy_st.hpp"
#include "events.hpp"
#include "drawer_yg.hpp"
#include "../yg/info_layer.hpp"
#include "../indexer/scales.hpp"
#include "../geometry/screenbase.hpp"
@ -31,10 +32,17 @@ void RenderPolicyST::DrawFrame(shared_ptr<PaintEvent> const & e,
pxCenter + m2::PointD(scaleEtalonSize / 2, scaleEtalonSize / 2)),
glbRect);
shared_ptr<yg::InfoLayer> infoLayer(new yg::InfoLayer());
e->drawer()->screen()->setInfoLayer(infoLayer);
e->drawer()->SetVisualScale(GetPlatform().VisualScale());
e->drawer()->screen()->clear(bgColor());
renderFn()(e, s, s.GlobalRect(), scales::GetScaleLevel(glbRect));
infoLayer->draw(e->drawer()->screen().get(), math::Identity<double, 3>());
e->drawer()->screen()->resetInfoLayer();
}
void RenderPolicyST::OnSize(int w, int h)

View file

@ -199,10 +199,10 @@ namespace yg
void InfoLayer::addPathText(PathTextElement const & pte, math::Matrix<double, 3, 3> const & m)
{
/* if (m == math::Identity<double, 3>())
if (m == math::Identity<double, 3>())
addPathTextImpl(pte);
else
addPathTextImpl(PathTextElement(pte, m));*/
addPathTextImpl(PathTextElement(pte, m));
}
void InfoLayer::merge(InfoLayer const & layer, math::Matrix<double, 3, 3> const & m)