mirror of
https://github.com/emilk/egui.git
synced 2026-09-03 07:10:04 -04:00
Fix rendering of thin, angled rectangles (#8482)
We had a fast path for very thin rectangles, but it did not heed the angle of the rect
This commit is contained in:
@@ -1800,7 +1800,7 @@ impl Tessellator {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if stroke.is_empty() && out.texture_id == TextureId::default() {
|
if angle == 0.0 && stroke.is_empty() && out.texture_id == TextureId::default() {
|
||||||
// Approximate thin rectangles with line segments.
|
// Approximate thin rectangles with line segments.
|
||||||
// This is important so that thin rectangles look good.
|
// This is important so that thin rectangles look good.
|
||||||
if rect.width() <= 2.0 * self.feathering {
|
if rect.width() <= 2.0 * self.feathering {
|
||||||
|
|||||||
Reference in New Issue
Block a user