Some autoated fixes.
This commit is contained in:
+2
-2
@@ -1,7 +1,7 @@
|
||||
|
||||
pub mod structs;
|
||||
|
||||
use sdl3::{Sdl, pixels::Color, rect::Rect, render::Canvas, sys::metadata::render, ttf::Font, video::Window};
|
||||
use sdl3::{Sdl, pixels::Color, rect::Rect, render::Canvas, ttf::Font, video::Window};
|
||||
use structs::{Prefs};
|
||||
|
||||
pub struct Screen<'a> {
|
||||
@@ -35,7 +35,7 @@ impl Screen<'_> {
|
||||
|
||||
/// Initialize video, allocate buffers and load fonts
|
||||
/// Based on https://github.com/vhspace/sdl3-rs/blob/master/examples/ttf-demo.rs
|
||||
pub fn init(prefs: &Prefs) -> Screen {
|
||||
pub fn init(prefs: &Prefs) -> Screen<'_> {
|
||||
// Initialize the screen
|
||||
let sdl_context = sdl3::init().unwrap();
|
||||
let video_subsys = sdl_context.video().unwrap();
|
||||
|
||||
Reference in New Issue
Block a user