summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAnsis Brammanis <brammanis@gmail.com>2015-06-03 21:12:46 -0400
committerAnsis Brammanis <brammanis@gmail.com>2015-06-09 11:07:17 -0400
commitcfee5aa8ef73b5bd2050bd68d584846192ebf0a2 (patch)
tree686b327bc5be995d3b7aee2b30e7be1d217dfad5 /src
parent0c5f8a2c59fdeeadcab52675e81e7a4e8904ed58 (diff)
downloadqtlocation-mapboxgl-cfee5aa8ef73b5bd2050bd68d584846192ebf0a2.tar.gz
fix text-letter-spacing render test by using float
Diffstat (limited to 'src')
-rw-r--r--src/mbgl/text/font_stack.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mbgl/text/font_stack.cpp b/src/mbgl/text/font_stack.cpp
index fc1be0fb72..88a739b804 100644
--- a/src/mbgl/text/font_stack.cpp
+++ b/src/mbgl/text/font_stack.cpp
@@ -27,8 +27,8 @@ const Shaping FontStack::getShaping(const std::u32string &string, const float ma
// the y offset *should* be part of the font metadata
const int32_t yOffset = -17;
- int32_t x = std::round(translate.x * 24); // one em
- const int32_t y = std::round(translate.y * 24) + yOffset; // one em
+ float x = std::round(translate.x * 24); // one em
+ const float y = std::round(translate.y * 24) + yOffset; // one em
// Loop through all characters of this label and shape.
for (uint32_t chr : string) {