Fix misleading comments

This commit is contained in:
Wannes Malfait 2025-06-21 16:24:30 +02:00
parent ffb02a0446
commit 81a820f2bd
No known key found for this signature in database

View File

@ -1309,8 +1309,10 @@ impl ControlPoints {
/// Draw the cap at the beginning of the segment. /// Draw the cap at the beginning of the segment.
/// ///
/// If this corner has a radius, or has a stroke before it, /// If this corner has a stroke before it,
/// a default "butt" cap is used. /// a default "butt" cap is used.
///
/// NOTE: doesn't support the case where the corner has a radius.
pub fn start_cap(&self, curve: &mut Curve, cap_type: LineCap) { pub fn start_cap(&self, curve: &mut Curve, cap_type: LineCap) {
if self.stroke_before != Abs::zero() if self.stroke_before != Abs::zero()
|| self.radius != Abs::zero() || self.radius != Abs::zero()
@ -1343,8 +1345,10 @@ impl ControlPoints {
/// Draw the cap at the end of the segment. /// Draw the cap at the end of the segment.
/// ///
/// If this corner has a radius, or has a stroke after it, /// If this corner has a stroke before it,
/// a default "butt" cap is used. /// a default "butt" cap is used.
///
/// NOTE: doesn't support the case where the corner has a radius.
pub fn end_cap(&self, curve: &mut Curve, cap_type: LineCap) { pub fn end_cap(&self, curve: &mut Curve, cap_type: LineCap) {
if self.stroke_after != Abs::zero() if self.stroke_after != Abs::zero()
|| self.radius != Abs::zero() || self.radius != Abs::zero()