refactor(brush): reuse HUD tip rendering in Liquify

This commit is contained in:
Nigel Ihza Firdausy committed 2026-10-13 12:00:11 +07:00
1 parent 5a136ae02c
commit 5cedd4613e
1 file changed
+1 -1
+1 -1
View File
@@ -170,7 +170,7 @@ fn preview_tint(app: &PhotocraftApp) -> Color32 {
/// A round tip of `radius` screen points: solid out to `hardness` of the radius, fading to clear
/// at the edge. One mesh (two rings and a centre), so its cost doesn't grow with the brush.
fn tip_preview(painter: &egui::Painter, c: Pos2, radius: f32, hardness: f32, color: Color32) {
pub(crate) fn tip_preview(painter: &egui::Painter, c: Pos2, radius: f32, hardness: f32, color: Color32) {
let clip = painter.clip_rect();
if !clip.expand(radius).contains(c) {
return;