sdl2-compat icon indicating copy to clipboard operation
sdl2-compat copied to clipboard

An SDL2 compatibility layer that uses SDL3 behind the scenes.

Results 26 sdl2-compat issues
Sort by recently updated
recently updated
newest added

Linux version of Torchlight was built against a prehistoric version of SDL2 (see, e.g., [here](https://gist.github.com/kkszysiu/247c42dc9fd1d34a70a1)), so it reads wrong event struct members and fails to retrieve mouse position and button...

Originally reproduced with SDL3 libsdl-org/SDL@a2d5942, sdl2-compat d87c932, running tests with `SDL_AUDIODRIVER=dummy SDL_VIDEODRIVER=dummy make test`. Still reproducible with the newest version I have tested, SDL3 libsdl-org/SDL@82f2c4d and sdl2-compat 76ab1f9f, by following...

> > This does mean we'll need to translate between SDL2 and SDL3 surfaces in sdl2-compat though. > > We need to do this anyhow, since we added SDL_PropertiesID to...

not sure why but tesgles2 of sdl2compat fails with: ``` INFO: SDL_GL_RED_SIZE: requested 5, got 8 INFO: SDL_GL_GREEN_SIZE: requested 5, got 8 INFO: SDL_GL_BLUE_SIZE: requested 5, got 8 INFO: SDL_GL_DEPTH_SIZE:...

> As of commit 3f84910, any attempt to build sdl2-compat for WinRT fails because of unsupported calls to MessageBoxA, lstrcpyA and wsprintfA, and possibly LoadLibraryA. _Originally posted by @sezero in...

There are a few places we still need to deal with device indexes that we currently don't: - [ ] Device add events are meant to supply an index in...

> 3) We could have sdl2-compat manage the SDL2 callback itself and feed the audio stream at a consistent rate, and not use the audio stream callback at all. >...

So I have [a text editor](https://github.com/icculus/fte) that I've been using for, oh, almost 30 years, which I ported to SDL2 at some point, so it would work wherever I might...