rdkcentral / Lightning

Lightning - The WPE UI Framework for developing Apps and UX
Apache License 2.0
191 stars 109 forks source link

fix: RoundedRectangleShader clipping stroke #522

Closed ricardo-a-alves-alb closed 9 months ago

ricardo-a-alves-alb commented 10 months ago

At it's current state, when setting a value for stroke on the RoundedRectangleShader the stroke itself gets clipped incorrectly. This is more noticiable when you put the radius at half the height (on a square) to make it a circle and then you can see it clipping the top/bottom and left/right of the stroke.

Comparative

Round:

Screenshot 2024-01-11 at 21 16 40

vs

image

Rectangle:

image

vs

image