Some autoated fixes.

This commit is contained in:
2026-04-27 21:02:41 +01:00
parent 431f21a8b8
commit ca6857dda9
5 changed files with 9 additions and 10 deletions
+2 -2
View File
@@ -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();
-1
View File
@@ -1,4 +1,3 @@
use sdl3::{render::Canvas, ttf::Font, video::Window};
pub struct Prefs {
pub font_path: String,