chore: move ttf context out of game.rs, remove unnecessary window event logging

This commit is contained in:
Ryan Walters
2025-09-05 15:21:20 -05:00
parent 4b0b8f4f2e
commit f7e7dee28f
3 changed files with 6 additions and 21 deletions

View File

@@ -12,7 +12,6 @@ use sdl2::{
EventPump,
};
use smallvec::{smallvec, SmallVec};
use tracing::{debug, info};
use crate::systems::components::DeltaTime;
use crate::{
@@ -300,15 +299,10 @@ pub fn input_system(
}
Event::Window { win_event, .. } => match win_event {
WindowEvent::Resized(w, h) => {
info!("Window resized to {}x{}", w, h);
}
_ => {
debug!("Window event: {:?}", win_event);
tracing::info!("Window resized to {}x{}", w, h);
}
_ => {}
},
Event::RenderTargetsReset { .. } => {
// No-op
}
_ => {
tracing::warn!("Unhandled event, consider disabling: {:?}", event);
}