Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaria Volvenkova <d.volvenkova@corp.mail.ru>2017-12-12 18:02:07 +0300
committerIlya Grechuhin <i.grechuhin@gmail.com>2017-12-14 14:10:18 +0300
commit7c7e426ff6da6a2980a7547be175ff9986a83940 (patch)
tree980939fb3794cdabf5c98d14f3988f1fb8523d23 /drape_frontend/user_mark_shapes.cpp
parentd03e314827addb222a1b3641a670d41f84832e76 (diff)
Support non-sdf text in user mark.
Diffstat (limited to 'drape_frontend/user_mark_shapes.cpp')
-rw-r--r--drape_frontend/user_mark_shapes.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/drape_frontend/user_mark_shapes.cpp b/drape_frontend/user_mark_shapes.cpp
index 06eeb1eb64..55d37a0e59 100644
--- a/drape_frontend/user_mark_shapes.cpp
+++ b/drape_frontend/user_mark_shapes.cpp
@@ -234,6 +234,11 @@ void CacheUserMarks(TileKey const & tileKey, ref_ptr<dp::TextureManager> texture
params.m_titleDecl.m_secondaryTextFont.m_size *= vs;
params.m_titleDecl.m_primaryOffset *= vs;
params.m_titleDecl.m_secondaryOffset *= vs;
+ bool const isSdf = df::VisualParams::Instance().IsSdfPrefered();
+ params.m_titleDecl.m_primaryTextFont.m_isSdf =
+ params.m_titleDecl.m_primaryTextFont.m_outlineColor != dp::Color::Transparent() ? true : isSdf;
+ params.m_titleDecl.m_secondaryTextFont.m_isSdf =
+ params.m_titleDecl.m_secondaryTextFont.m_outlineColor != dp::Color::Transparent() ? true : isSdf;
params.m_depth = renderInfo.m_depth;
params.m_depthLayer = renderInfo.m_depthLayer;