line-offset -> line-gap-width

This commit is contained in:
Lauren Budorick
2014-10-26 17:31:06 -04:00
committed by John Firebaugh
parent 0e3f111a79
commit 0d6bca0e7e
6 changed files with 8 additions and 7 deletions

View File

@@ -17,7 +17,8 @@ void Painter::renderLine(LineBucket& bucket, util::ptr<StyleLayer> layer_desc, c
float antialiasing = 1 / state.getPixelRatio();
float width = properties.width;
float offset = properties.offset / 2;
float offset = properties.gap_width / 2;
offset = offset == 0 ? offset : offset + width / 2;
float blur = properties.blur + antialiasing;
// These are the radii of the line. We are limiting it to 16, which will result