Fix blocked-out surfaces on scaled outputs
Browse files at this commit641b44e0065eee44727d664ef2ef13046533aff0Parent: 1394afa1 changed file +4 -5
- src/layout/tile.rs +4 -5
src/layout/tile.rsmodified+4 -5
| @@ -732,18 +732,17 @@ impl<W: LayoutElement> Tile<W> { | |||
| 732 | // user-provided radius, so our blocked-out rendering should match that | 732 | // user-provided radius, so our blocked-out rendering should match that |
| 733 | // radius. | 733 | // radius. |
| 734 | if radius != CornerRadius::default() && has_border_shader { | 734 | if radius != CornerRadius::default() && has_border_shader { |
| 735 | - let elem_geo = elem.geometry(Scale::from(1.)).to_logical(1); | ||
| 736 | return BorderRenderElement::new( | 735 | return BorderRenderElement::new( |
| 737 | - elem_geo.size, | 736 | + geo.size, |
| 738 | - Rectangle::from_loc_and_size((0, 0), elem_geo.size), | 737 | + Rectangle::from_loc_and_size((0, 0), geo.size), |
| 739 | elem.color(), | 738 | elem.color(), |
| 740 | elem.color(), | 739 | elem.color(), |
| 741 | 0., | 740 | 0., |
| 742 | - Rectangle::from_loc_and_size(geo.loc - elem_geo.loc, geo.size), | 741 | + Rectangle::from_loc_and_size((0, 0), geo.size), |
| 743 | 0., | 742 | 0., |
| 744 | radius, | 743 | radius, |
| 745 | ) | 744 | ) |
| 746 | - .with_location(elem_geo.loc) | 745 | + .with_location(geo.loc) |
| 747 | .into(); | 746 | .into(); |
| 748 | } | 747 | } |
| 749 | 748 | ||