diff options
author | Chris Loer <chris.loer@gmail.com> | 2017-11-09 13:24:43 -0800 |
---|---|---|
committer | Chris Loer <chris.loer@gmail.com> | 2017-11-09 14:34:54 -0800 |
commit | 082b9a66bececc3ba9ce620a553933a20061c2a2 (patch) | |
tree | 0e6e6b73b59af0e80c461efc5f7ae8294b8c5148 /src/mbgl/text/glyph.hpp | |
parent | a845a55943e349ed74c4f99e7cfc960ca2a56d22 (diff) | |
download | qtlocation-mapboxgl-082b9a66bececc3ba9ce620a553933a20061c2a2.tar.gz |
[core] Use floats instead of ints for Shaping.
Brings gl-native shaping closer to gl-js.
Diffstat (limited to 'src/mbgl/text/glyph.hpp')
-rw-r--r-- | src/mbgl/text/glyph.hpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mbgl/text/glyph.hpp b/src/mbgl/text/glyph.hpp index 6cccb72ebe..08ff82a20a 100644 --- a/src/mbgl/text/glyph.hpp +++ b/src/mbgl/text/glyph.hpp @@ -75,10 +75,10 @@ class Shaping { explicit Shaping(float x, float y, WritingModeType writingMode_) : top(y), bottom(y), left(x), right(x), writingMode(writingMode_) {} std::vector<PositionedGlyph> positionedGlyphs; - int32_t top = 0; - int32_t bottom = 0; - int32_t left = 0; - int32_t right = 0; + float top = 0; + float bottom = 0; + float left = 0; + float right = 0; WritingModeType writingMode; explicit operator bool() const { return !positionedGlyphs.empty(); } |