summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAnsis Brammanis <brammanis@gmail.com>2015-05-29 14:18:17 -0400
committerAnsis Brammanis <brammanis@gmail.com>2015-06-02 11:33:03 -0400
commit93fc67ba5519eaefb0d0dbd856ff1f90160c4dea (patch)
treeece19e0e729a01b6a0bd201c70fc6b9e3e0166f3 /src
parent2ae2cade4a8a0ed8b77616c73281896feaa39204 (diff)
downloadqtlocation-mapboxgl-93fc67ba5519eaefb0d0dbd856ff1f90160c4dea.tar.gz
re-add sprite atlas pollution fix
It got missed in a merge. https://github.com/mapbox/mapbox-gl-native/commit/03d5e2da80111e225c2478286b60dd4e9b7ec527
Diffstat (limited to 'src')
-rw-r--r--src/mbgl/text/quads.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mbgl/text/quads.cpp b/src/mbgl/text/quads.cpp
index 9835a488a2..9434396156 100644
--- a/src/mbgl/text/quads.cpp
+++ b/src/mbgl/text/quads.cpp
@@ -157,7 +157,8 @@ SymbolQuads getGlyphQuads(Anchor &anchor, const Shaping &shapedText,
}
// The rects have an addditional buffer that is not included in their size;
- const float rectBuffer = 3.0f;
+ const float glyphPadding = 1.0f;
+ const float rectBuffer = 3.0f + glyphPadding;
const float x1 = positionedGlyph.x + glyph.metrics.left - rectBuffer;
const float y1 = positionedGlyph.y - glyph.metrics.top - rectBuffer;