mirror of
https://github.com/st3fan/ewm.git
synced 2026-10-25 17:02:19 +00:00
* Upgrade the frontend from SDL2 to SDL3 Port the ewm crate from the sdl2 crate (0.38) to sdl3 (0.18.4), linking against Homebrew SDL3 via pkg-config. Behavior is unchanged. - sdl.rs: SDL3 removed SDL_RendererInfo, so the texture-format probe walks the renderer properties instead; the accelerated check becomes a software-renderer name check (the ACCELERATED flag is gone), and RGB888 is now spelled XRGB8888. - snd.rs: the SDL2 AudioQueue becomes an SDL3 audio stream. The queued_bytes() backpressure cap replaces AudioQueue::size(), and the prime-then-resume order keeps the underrun headroom (SDL3 devices start paused). SDL3 has no per-device sample-buffer request. - boo.rs/one.rs/two.rs: into_canvas() is infallible with no builder, set_logical_size() takes a presentation mode, the timer subsystem is replaced by sdl3::timer::ticks(), text input is per-window, fullscreen is a bool, Keycode::Num1 is Keycode::_1, and the game controller subsystem is now gamepads with positional button names (A/B/X/Y -> South/East/West/North). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> * CI: build on ubuntu-26.04 with libsdl3-dev Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> --------- Co-authored-by: Claude Fable 5 <noreply@anthropic.com>