Skip to content

Commit

Permalink
fix clippy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
jjyr committed Oct 10, 2024
1 parent be79bd1 commit b988fe0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/engine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,8 @@ impl Engine {
self.set_default_font(handle);
}

pub(crate) fn resize(&mut self, size: UVec2) {
#[allow(dead_code)]
pub(crate) fn on_resize(&mut self, size: UVec2) {
self.render.borrow_mut().resize(size);
}

Expand Down
2 changes: 1 addition & 1 deletion src/platform/sdl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ impl Platform for SDLPlatform {
// Obtained samplerate might be different from requested
// platform_output_samplerate = obtained_spec.freq;
engine.init(setup);
engine.resize(event_handler.window.drawable_size().into());
engine.on_resize(event_handler.window.drawable_size().into());

while !event_handler.wants_to_exit {
if let Err(err) = engine.handle_assets().await {
Expand Down

0 comments on commit b988fe0

Please sign in to comment.