mirror of
https://github.com/electron/electron.git
synced 2026-02-19 03:14:51 -05:00
fix: draw smoothing round rect corner (#48780)
Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com> Co-authored-by: Bill Shen <15865969+cucbin@users.noreply.github.com>
This commit is contained in:
@@ -302,8 +302,8 @@ SkPath DrawSmoothRoundRect(float x,
|
||||
bottom_right_smoothness, SkPoint::Make(x + width, y + height), 2);
|
||||
|
||||
// Bottom left corner
|
||||
DrawCorner(path, bottom_left_radius, left_bottom_smoothness,
|
||||
bottom_left_smoothness, SkPoint::Make(x, y + height), 3);
|
||||
DrawCorner(path, bottom_left_radius, bottom_left_smoothness,
|
||||
left_bottom_smoothness, SkPoint::Make(x, y + height), 3);
|
||||
|
||||
path.close();
|
||||
return path;
|
||||
|
||||
Reference in New Issue
Block a user