gpui: Align SVG sprites to whole pixels (#15822)
Related to https://github.com/zed-industries/zed/issues/12352 (and old issue https://github.com/zed-industries/zed/issues/643) This fixes visual glitches that could happen when rendering icons on Linux and Windows (and in the Blade backend)    Release Notes: - Linux: Fixed visual glitches when rendering icons.
This commit is contained in:
parent
27779e33fb
commit
ab1fabef68
1 changed files with 3 additions and 1 deletions
|
@ -2597,7 +2597,9 @@ impl<'a> WindowContext<'a> {
|
|||
.insert_primitive(MonochromeSprite {
|
||||
order: 0,
|
||||
pad: 0,
|
||||
bounds,
|
||||
bounds: bounds
|
||||
.map_origin(|origin| origin.floor())
|
||||
.map_size(|size| size.ceil()),
|
||||
content_mask,
|
||||
color,
|
||||
tile,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue