libsdl-org / SDL-1.2

Simple Directmedia Layer, 1.2 branch ... ***DEPRECATED***, please use https://github.com/libsdl-org/SDL for new projects!
https://libsdl.org
GNU Lesser General Public License v2.1
98 stars 81 forks source link

Interoperability between SDL1.2 apps and SDL2 plugins on macOS #864

Closed kjliew closed 2 years ago

kjliew commented 2 years ago

The patch enables retrievable info->nsWindowPtr type from SDL_GetWMInfo() to enable foreign window conversion in SDL2 plugins. Fixed class collision warning on SDLTranslatorResponder when both SDL1.2 and SDL2 dylib are loaded at the same time.

sha256sum 26d450371967cce1bd169c46cdedee1e98d2acd07dd14d1a25ee2aa7c2655779 0005-GetWMInfo.txt

sezero commented 2 years ago

@slouken and @icculus will probably not like this and close as EOL.

kjliew commented 2 years ago

That's fine. It's for archiving.

sezero commented 2 years ago

I wonder why it was commented out, though..

icculus commented 2 years ago

I don't know why this is commented out, either, but it's literally never been uncommented:

https://github.com/libsdl-org/SDL-1.2/commit/924ec820df1a531a58b9fc582af1ac4bbf114fa0

It probably wouldn't hurt to change it, but also it's never going to be in a formal release or properly tested by us, so we'll just leave this as archival for now.

CyberLuke-GBG commented 2 years ago

@kjliew are you able to fix it in your branch?

@icculus even no pull request will be merged?

kjliew commented 2 years ago

@kjliew are you able to fix it in your branch?

It is just a waste of time doing that. Everyone should have moved to SDL2. Distros packagers can simply pull the patch from here and apply for themselves.

cyberluke commented 2 years ago

People at Vogons forum use it for retro computing (Windows 98) and on FreeDOS mailing list there are people running SDL in DOS as well.

cyberluke commented 2 years ago

Thank you for linking that, I will share it with others. Perhaps clonning this whole repo and applying this fix for others as well.