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
path: root/3party
diff options
context:
space:
mode:
authorMaxim Pimenov <m@maps.me>2019-09-09 13:41:49 +0300
committerTatiana Yan <tatiana.kondakova@gmail.com>2019-09-09 13:52:29 +0300
commitd205599387592087324b5ea35449de79b4f40a02 (patch)
tree5a304db888fcc6f51bf888e7f6cecc0031253df2 /3party
parent640198a2d543fed90d3e95d0fbcbe62b631494e6 (diff)
Review fixes.
Diffstat (limited to '3party')
-rw-r--r--3party/sdf_image/sdf_image.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/3party/sdf_image/sdf_image.cpp b/3party/sdf_image/sdf_image.cpp
index edbea6e0b6..5def20aa5f 100644
--- a/3party/sdf_image/sdf_image.cpp
+++ b/3party/sdf_image/sdf_image.cpp
@@ -142,7 +142,7 @@ void SdfImage::Distquant()
{
for_each(m_data.begin(), m_data.end(), [](float & node)
{
- node = base::clamp(0.5f + node * 0.0325f, 0.0f, 1.0f);
+ node = base::Clamp(0.5f + node * 0.0325f, 0.0f, 1.0f);
});
}
@@ -266,7 +266,7 @@ float SdfImage::DistaA3(int c, int xc, int yc, int xi, int yi) const
ASSERT_GREATER_OR_EQUAL(closest, 0, ());
ASSERT_LESS(closest, m_data.size(), ());
- float a = base::clamp(m_data[closest], 0.0f, 1.0f); // Grayscale value at the edge pixel
+ float a = base::Clamp(m_data[closest], 0.0f, 1.0f); // Grayscale value at the edge pixel
if(a == 0.0)
return 1000000.0; // Not an object pixel, return "very far" ("don't know yet")