Skip to content

Commit

Permalink
Run fmt.
Browse files Browse the repository at this point in the history
  • Loading branch information
kaphula committed Jan 19, 2025
1 parent d655675 commit 5629586
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 11 deletions.
15 changes: 6 additions & 9 deletions egui-sdl2-event-example/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -154,21 +154,18 @@ fn paint_and_update_textures(
renderer.render(&mut render_pass, clipped_primitives, &screen_descriptor);
}


// Submit the commands.
queue.submit(std::iter::once(encoder.finish()));


// Redraw egui
output_frame.present();


{
let mut rpass = egui_renderer.write();
for id in &textures_delta.free {
rpass.free_texture(id);
}
}
{
let mut rpass = egui_renderer.write();
for id in &textures_delta.free {
rpass.free_texture(id);
}
}
}

fn main() {
Expand Down
2 changes: 0 additions & 2 deletions lib/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ use sdl2::keyboard::Mod;
use sdl2::mouse::{Cursor, MouseButton, SystemCursor};
use sdl2::video::Window;



pub struct FusedCursor {
pub cursor: sdl2::mouse::Cursor,
pub icon: sdl2::mouse::SystemCursor,
Expand Down

0 comments on commit 5629586

Please sign in to comment.