summaryrefslogtreecommitdiff
path: root/src/mbgl/text/shaping.cpp
diff options
context:
space:
mode:
authorChris Loer <chris.loer@gmail.com>2017-11-09 13:24:43 -0800
committerChris Loer <chris.loer@mapbox.com>2017-11-17 10:05:15 -0800
commit4137f559f08b50ac6d8d5ac9ff0489faec470cdf (patch)
treec466dc38a67a48e89e5b5e569a4e6d41f50ec27d /src/mbgl/text/shaping.cpp
parent30de793c2ab2f864af3e524be24f917f6897634a (diff)
downloadqtlocation-mapboxgl-4137f559f08b50ac6d8d5ac9ff0489faec470cdf.tar.gz
[core] Use floats instead of ints for Shaping.
Brings gl-native shaping closer to gl-js.
Diffstat (limited to 'src/mbgl/text/shaping.cpp')
-rw-r--r--src/mbgl/text/shaping.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mbgl/text/shaping.cpp b/src/mbgl/text/shaping.cpp
index 5d688ea539..a8232836b6 100644
--- a/src/mbgl/text/shaping.cpp
+++ b/src/mbgl/text/shaping.cpp
@@ -313,7 +313,7 @@ void shapeLines(Shaping& shaping,
align(shaping, justify, anchorAlign.horizontalAlign, anchorAlign.verticalAlign, maxLineLength,
lineHeight, lines.size());
- const uint32_t height = lines.size() * lineHeight;
+ const float height = lines.size() * lineHeight;
// Calculate the bounding box
shaping.top += -anchorAlign.verticalAlign * height;