Skip to content

LightCraft: An open-source non-destructive photo editor written by scratch in pure Rust

Merge PR #1979: LR-EDIT-COLOR-GRADING: a wheel drag holds the pointer and pu

francoisgn878f49cac65d
diff --cc crates/ui-egui/src/lib.rs
index 66036c243,17df83b94..ffecba371
--- a/crates/ui-egui/src/lib.rs
+++ b/crates/ui-egui/src/lib.rs
@@@ -1411,11 -1383,7 +1411,12 @@@ impl LightcraftApp
/// Frame timings once layout is done (`t0`: when layout started).
fn end_frame(&mut self, ctx: &egui::Context, t0: f64) {
+ if self.ui.frame_rate {
+ frame_rate::show(ctx, self);
+ } else {
+ frame_rate::forget(ctx);
+ }
+ panels::edit::wheel_pointer_frame_end(ctx);
ctx.output(|o| {
for c in &o.commands {
if let egui::OutputCommand::CopyText(text) = c {