From 9263e8a91c53899a0356c8df30dfcbe7dd28824c Mon Sep 17 00:00:00 2001 From: rachytski Date: Fri, 28 Jan 2011 00:39:44 +0200 Subject: [PATCH] Always drawing masked texts. --- map/drawer_yg.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/map/drawer_yg.cpp b/map/drawer_yg.cpp index 094b70d4f2..6b6602e8be 100644 --- a/map/drawer_yg.cpp +++ b/map/drawer_yg.cpp @@ -150,7 +150,7 @@ void DrawerYG::drawArea(vector const & pts, rule_ptr_t pRule, int de namespace { double const min_text_height = 7.99; // 8 - double const min_text_height_mask = 9.99; // 10 +// double const min_text_height_mask = 9.99; // 10 } uint8_t DrawerYG::get_text_font_size(rule_ptr_t pRule) const @@ -172,11 +172,11 @@ void DrawerYG::drawText(m2::PointD const & pt, string const & name, rule_ptr_t p bool DrawerYG::drawPathText(di::PathInfo const & info, string const & name, uint8_t fontSize, int /*depth*/) { - bool const isMasked = (double(fontSize) / m_visualScale >= min_text_height_mask); +// bool const isMasked = (double(fontSize) / m_visualScale >= min_text_height); return m_pScreen->drawPathText( &info.m_path[0], info.m_path.size(), fontSize, name, info.GetLength(), info.GetOffset(), - yg::gl::Screen::middle_line, isMasked, yg::maxDepth); + yg::gl::Screen::middle_line, true, yg::maxDepth); } shared_ptr DrawerYG::screen() const