Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
marc2332 committed Feb 2, 2025
1 parent acd5c51 commit 1994b5f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
2 changes: 1 addition & 1 deletion crates/renderer/src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ impl Application {
}

// Process queued events
pub fn flush_events(&mut self, scale_factor: f64){
pub fn flush_events(&mut self, scale_factor: f64) {
self.process_events(scale_factor);
}

Expand Down
10 changes: 2 additions & 8 deletions crates/renderer/src/renderer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,19 +120,13 @@ impl<'a, State: Clone + 'static> DesktopRenderer<'a, State> {

// Send an event
fn send_event(&mut self, event: PlatformEvent) {
self.state
.created_state()
.app
.send_event(event);
self.state.created_state().app.send_event(event);
}

// Process queued events
fn flush_events(&mut self) {
let scale_factor = self.scale_factor();
self.state
.created_state()
.app
.flush_events(scale_factor);
self.state.created_state().app.flush_events(scale_factor);
}

/// Get the current scale factor of the Window
Expand Down

0 comments on commit 1994b5f

Please sign in to comment.