summaryrefslogtreecommitdiff
path: root/src/renderer
diff options
context:
space:
mode:
authorLauren Budorick <lauren@mapbox.com>2014-10-26 17:48:06 -0400
committerJohn Firebaugh <john.firebaugh@gmail.com>2014-11-04 12:26:14 -0800
commit3d18160fe4fa08520dc508cf51283534669e0ec4 (patch)
tree3f58f5be081e61d386eb07dfe849d56bc16dd332 /src/renderer
parent0d6bca0e7e46588f57b178a4593fdb02f5c4592f (diff)
downloadqtlocation-mapboxgl-3d18160fe4fa08520dc508cf51283534669e0ec4.tar.gz
More concise
Diffstat (limited to 'src/renderer')
-rw-r--r--src/renderer/painter_line.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/renderer/painter_line.cpp b/src/renderer/painter_line.cpp
index 93d8db1a53..bf8e1b060c 100644
--- a/src/renderer/painter_line.cpp
+++ b/src/renderer/painter_line.cpp
@@ -17,8 +17,7 @@ void Painter::renderLine(LineBucket& bucket, util::ptr<StyleLayer> layer_desc, c
float antialiasing = 1 / state.getPixelRatio();
float width = properties.width;
- float offset = properties.gap_width / 2;
- offset = offset == 0 ? offset : offset + width / 2;
+ float offset = properties.gap_width == 0 ? 0 : (properties.gap_width + width) / 2;
float blur = properties.blur + antialiasing;
// These are the radii of the line. We are limiting it to 16, which will result