Menu

fuse Merge Request #31: SDL 1.2 to SDL 2.0 migration (open)

Merging...

Merged

Something went wrong. Please, merge manually

Checking if merge is possible...

Something went wrong. Please, merge manually

Vitaly Greck wants to merge 6 commits from /u/vintozver/fuse-emulator-fuse/ to master, 2025-05-08

I have made the changes to remove SDL 1.2 dependency, and have SDL2 dependency only.
Key takeaways:
* removed "unicode" stuff - SDL2 is unicode by definition
* removed Meta_X and Super_X buttons - SDL2 does not have these definitions
* removed "fullscreen mode change" - if we want fullscreen - we should be utilizing current resolution (if user wants another resolution - it's their business to accommodate to that, before running the "game")
* use SDL2 texture/renderer natively
* use SDL_PIXELFORMAT_RGB565 only - let SDL/renderer handle the conversions

Tested on RPi4 & RPi5 - works fine with both X11 & wayland.

Potential issues:
* full screen mode is not completely perfect yet - need to do some work on switching
* temporarily disabled rectangle updates - refresh the whole canvas (to test the performance "in the worst case")
* mouse grab - need to make sure kempston mouse works fine (I test Pentagon512/gluk)

Let me know if you have any questions, suggestions or comments. Thanks for the review! Looking forward to work it out to the finish line and merge it.

Commit Date  
[b694ac] (sdl2-only) by Vitaly Greck Vitaly Greck

Remove sdl_fullscreen_mode option - no longer effective
Screen must be set properly before invoking the "game"

2025-05-08 01:01:54 Tree
[f38076] by Vitaly Greck Vitaly Greck

Fix SDL2 kempston mouse - no more hacks, use SDL2 relative movement

2025-05-07 05:31:40 Tree
[e31691] by Vitaly Greck Vitaly Greck

Update rects only when necessary (no more forced full updates)
Remove fullscreen adjustment logic - not SDL2 compliant

2025-05-04 05:19:25 Tree
[f4ecbd] by Vitaly Greck Vitaly Greck

SDL 1.2 to 2.0 migration
Use textures to render

2025-05-03 05:00:46 Tree
[883594] by Vitaly Greck Vitaly Greck

depend on libspectrum 1.5.1

2025-05-02 00:22:19 Tree
[e0a41c] by Vitaly Greck Vitaly Greck

SDL2 only support (remove SDL1 deps)

2025-04-30 00:31:59 Tree

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.