# Pull logic for clamping corner rounding radii out of \`Corners::to_pixels\` \(\#27460\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/8c8f50d9165272726b8253fa2fdaff0fee8254d2)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 8c8f50d9165272726b8253fa2fdaff0fee8254d2

Requested commit: 8c8f50d9165272726b8253fa2fdaff0fee8254d2

Commit: 8c8f50d9165272726b8253fa2fdaff0fee8254d2

Tree: 8889828e9d121f5f855f7c3144a29e070de5f93a

Author: Michael Sloan

Committer: GitHub

## Message

```
Pull logic for clamping corner rounding radii out of `Corners::to_pixels` (#27460)

This seems more correct as corners are not necessarily only for rounding
radii.

Also applies clamping after scaling in `paint_quad`, deduplicating that
logic. This also provides a more precise result by doing the clamping
after scaling, avoiding floating point rounding issues (probably a
non-issue).

Release Notes:

- N/A
```

## Parents

- [76192ea93cdad3e9276607de2f60bc3b0a82beea](https://git.cafe/gitcafe/zed/commit/76192ea93cdad3e9276607de2f60bc3b0a82beea?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/8c8f50d9165272726b8253fa2fdaff0fee8254d2?format=markdown)
