Merge pull request #1246 from huncut2016/main

error: there is no argument named `min_ft` solved
macos-click-through
LoipesMas 3 years ago committed by GitHub
commit bb1255d303
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -114,19 +114,19 @@ impl Profiler {
// Show min, max, avg // Show min, max, avg
root_canvas.draw_str( root_canvas.draw_str(
format!("min: {min_ft:.1}ms"), format!("min: {:.1}ms", min_ft),
(rect.left, rect.bottom), (rect.left, rect.bottom),
&self.font.skia_font, &self.font.skia_font,
&paint, &paint,
); );
root_canvas.draw_str( root_canvas.draw_str(
format!("avg: {avg:.1}ms"), format!("avg: {:.1}ms", avg),
(rect.left, rect.bottom - graph_height * 0.5), (rect.left, rect.bottom - graph_height * 0.5),
&self.font.skia_font, &self.font.skia_font,
&paint, &paint,
); );
root_canvas.draw_str( root_canvas.draw_str(
format!("max: {max_ft:.1}ms"), format!("max: {:.1}ms", max_ft),
(rect.left, rect.bottom - graph_height), (rect.left, rect.bottom - graph_height),
&self.font.skia_font, &self.font.skia_font,
&paint, &paint,

Loading…
Cancel
Save