1
0
mirror of https://github.com/emilk/egui.git synced 2026-06-26 22:53:14 -04:00

epaint: Fix compile errors related to ArcPieShape

This commit is contained in:
Varphone Wong
2024-08-30 16:58:30 +08:00
parent 7d32e74c81
commit b94a2251b3
3 changed files with 8 additions and 7 deletions

View File

@@ -7,7 +7,7 @@ use crate::{
text::{FontId, Fonts, Galley},
Color32, Mesh, Stroke, TextureId,
};
use emath::{pos2, Align2, Pos2, Rangef, Rect, TSTransform, Vec2};
use emath::{pos2, vec2, Align2, Pos2, Rangef, Rect, TSTransform, Vec2};
pub use crate::{CubicBezierShape, QuadraticBezierShape};

View File

@@ -1,8 +1,8 @@
use std::sync::Arc;
use crate::{
color, CircleShape, Color32, ColorMode, CubicBezierShape, EllipseShape, Mesh, PathShape,
QuadraticBezierShape, RectShape, Shape, TextShape,
color, ArcPieShape, CircleShape, Color32, ColorMode, CubicBezierShape, EllipseShape, Mesh,
PathShape, QuadraticBezierShape, RectShape, Shape, TextShape,
};
/// Remember to handle [`Color32::PLACEHOLDER`] specially!

View File

@@ -7,9 +7,9 @@
use crate::texture_atlas::PreparedDisc;
use crate::{
color, emath, stroke, CircleShape, ClippedPrimitive, ClippedShape, Color32, CubicBezierShape,
EllipseShape, Mesh, PathShape, Primitive, QuadraticBezierShape, RectShape, Rounding, Shape,
Stroke, TextShape, TextureId, Vertex, WHITE_UV,
color, emath, stroke, ArcPieShape, CircleShape, ClippedPrimitive, ClippedShape, Color32,
CubicBezierShape, EllipseShape, Mesh, PathShape, Primitive, QuadraticBezierShape, RectShape,
Rounding, Shape, Stroke, TextShape, TextureId, Vertex, WHITE_UV,
};
use emath::{pos2, remap, vec2, NumExt, Pos2, Rect, Rot2, Vec2};
@@ -1519,7 +1519,8 @@ impl Tessellator {
if closed {
self.scratchpad_path
.add_pie(center, radius, start_angle, end_angle);
self.scratchpad_path.fill(self.feathering, fill, out);
self.scratchpad_path
.fill(self.feathering, fill, &stroke, out);
self.scratchpad_path
.stroke_closed(self.feathering, &stroke, out);
} else {