Axe the 16-px line width limit
This commit is contained in:
committed by
John Firebaugh
parent
3d18160fe4
commit
37922605f8
@@ -20,10 +20,8 @@ void Painter::renderLine(LineBucket& bucket, util::ptr<StyleLayer> layer_desc, c
|
||||
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
|
||||
// in a point size of 64 on retina.
|
||||
float inset = std::fmin((std::fmax(-1, offset - width / 2 - antialiasing / 2) + 1), 16.0f);
|
||||
float outset = std::fmin(offset + width / 2 + antialiasing / 2, 16.0f);
|
||||
float inset = std::fmax(-1, offset - width / 2 - antialiasing / 2) + 1;
|
||||
float outset = offset + width / 2 + antialiasing / 2;
|
||||
|
||||
Color color = properties.color;
|
||||
color[0] *= properties.opacity;
|
||||
|
||||
Reference in New Issue
Block a user