Skip to content

Port to sdl2#44

Merged
ReinhardPrix merged 29 commits into
masterfrom
port-to-sdl2
Mar 22, 2026
Merged

Port to sdl2#44
ReinhardPrix merged 29 commits into
masterfrom
port-to-sdl2

Conversation

@ReinhardPrix

Copy link
Copy Markdown
Owner

Ported old SDL1.2 interface to using SDL2 (with help from OpenCode(GPT-5.3-codex)).
This is meant as an intermediate step to porting this to SDL3.

Seems to work completely, at least on Linux. (Deferring cross-builds until SDL3 migration is complete).

@ReinhardPrix ReinhardPrix self-assigned this Mar 15, 2026
@ReinhardPrix ReinhardPrix force-pushed the port-to-sdl2 branch 3 times, most recently from a6f00de to ca8f9c1 Compare March 15, 2026 14:49
Keep the existing non-smoothed scaling behavior while moving tile and asset resizing off zoomSurface(). This preserves current alpha and colorkey handling and gives the SDL3 port a smaller graphics dependency surface.
Generate rotated bullet surfaces with a local nearest-neighbor path instead of rotozoomSurface(). This keeps the existing per-bullet caching model in place while removing the last runtime transform dependency from SDL2_gfx.
Stop including SDL2_rotozoom headers, remove SDL2_gfx from configure checks, and update CI packages to match the new dependency set. The codebase now builds and runs without SDL2_gfx, clearing the graphics-side blocker for the SDL3 migration.
- we'll move up to 2.0 when hitting full SDL3 port
@ReinhardPrix

Copy link
Copy Markdown
Owner Author

Ok, SDL2 port seems complete, and cleaned-up some of the intermediate compatibility-wrappers. Testing (on Linux) shows all working as it should be.
Time to merge ...
/cc @JoPr1-prog

@ReinhardPrix ReinhardPrix merged commit 59f0aa5 into master Mar 22, 2026
1 check passed
@ReinhardPrix ReinhardPrix deleted the port-to-sdl2 branch March 22, 2026 12:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant