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:
Diffstat (limited to 'software_renderer/proto_to_styles.cpp')
-rw-r--r--software_renderer/proto_to_styles.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/software_renderer/proto_to_styles.cpp b/software_renderer/proto_to_styles.cpp
index ec4fa7353f..05a981ff90 100644
--- a/software_renderer/proto_to_styles.cpp
+++ b/software_renderer/proto_to_styles.cpp
@@ -97,7 +97,7 @@ void ConvertStyle(SymbolRuleProto const * pSrc, IconInfo & dest)
void ConvertStyle(CaptionDefProto const * pSrc, double scale, dp::FontDecl & dest, m2::PointD & offset)
{
// fonts smaller than 8px look "jumpy" on LDPI devices
- uint8_t const h = max(8, static_cast<int>(pSrc->height() * scale));
+ uint8_t const h = std::max(8, static_cast<int>(pSrc->height() * scale));
offset = m2::PointD(0, 0);
if (pSrc->offset_x() != 0)
@@ -114,7 +114,7 @@ void ConvertStyle(CaptionDefProto const * pSrc, double scale, dp::FontDecl & des
void ConvertStyle(ShieldRuleProto const * pSrc, double scale, dp::FontDecl & dest)
{
// fonts smaller than 8px look "jumpy" on LDPI devices
- uint8_t const h = max(8, static_cast<int>(pSrc->height() * scale));
+ uint8_t const h = std::max(8, static_cast<int>(pSrc->height() * scale));
dest = dp::FontDecl(ConvertColor(pSrc->color()), h);