Skip to content

Commit 8b598ec

Browse files
authored
1 parent 4020f07 commit 8b598ec

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

demos/constraints/src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ impl eframe::App for ConstraintsApp {
116116
);
117117
let from_screen = to_screen.inverse();
118118

119-
let debug_stroke = egui::Stroke::new(1.0, Color32::LIGHT_GRAY);
119+
let debug_stroke = egui::Stroke::new(1.0_f32, Color32::LIGHT_GRAY);
120120
painter.extend(self.decorations.iter().map(|d| match d {
121121
Decoration::Line(a, b) => {
122122
let a = to_screen.transform_pos(*a);
@@ -237,7 +237,7 @@ impl eframe::App for ConstraintsApp {
237237
let a = to_screen.transform_pos(pos2(pa.x.cur, pa.y.cur));
238238
let pb = self.points[beam.1];
239239
let b = to_screen.transform_pos(pos2(pb.x.cur, pb.y.cur));
240-
let stroke = egui::Stroke::new(2.0, beam.2);
240+
let stroke = egui::Stroke::new(2.0_f32, beam.2);
241241
Shape::line_segment([a, b], stroke)
242242
}));
243243

0 commit comments

Comments
 (0)