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

SDL1.x - which version supports NT3.1 or Win3.1? #885

Closed Torinde closed 2 months ago

Torinde commented 2 months ago

SDL 2004 website FAQ What Platforms are Supported is not archived and I can't find information which version (if any) of SDL supports those:

Closest I found is here:

Lowest SDL 1.2.13 supports is 95 (original) (unknown about betas) and NT 3.50 (Have to disable fullscreen support and use 3.51 joystick dll.)

icculus commented 2 months ago

I'm not sure that NT3.1 or Win32s was ever supported; that vogons.org post was saying that the author had personally patched it to work on NT3.1 (and that HX DOS Extender could run his Win95 build with its Win32s support). It's not impossible that the windib video backend would work on those platforms without changes, but even the winmm audio code needs to spin a thread internally, so it might work on ancient WinNT, but it's likely a non-starter on win32s in any case.

But there are fallbacks for platforms without DirectX at all, so with work one could probably get it running, maybe disabling audio.

SDL 1.2 (even the latest in revision control, afaik) should still work on Windows 95 and WinNT 4.0, but no one here is testing these platforms any more (or SDL 1.2 at all, really, at this point).

ccawley2011 commented 2 months ago

I did get SDL 1.2 working on Windows 3.1 with Win32s and WinG a while ago: https://github.com/ccawley2011/SDL-1.2/tree/win32s

krnl386_030

sezero commented 2 months ago

I did get SDL 1.2 working on Windows 3.1 with Win32s and WinG a while ago: https://github.com/ccawley2011/SDL-1.2/tree/win32s

Huh. So it was possible..

Torinde commented 2 months ago

@icculus, thank you for the details! What I found afterwards:

Remains inconclusive - neither official mention of NT3.1/Win3.x/Win32s, nor explicit "can't be done" statement.

@ccawley2011, wow, great job - pleasant surprise while I was writing this! That settles it! Are you interested in adapting DOSbox-X for Win32s+WinG? Some discussions about adapting it for NT3.5x and Win32s:

If SDL is using the top-down BITMAPINFO type blitting that doesn't work either in Windows 3.1 and you'll get an emulator screen that's upside down.

Do you know if SDL is using top-down BITMAPINFO type blitting? Did you get the audio working as well?

icculus commented 2 months ago

I did get SDL 1.2 working on Windows 3.1 with Win32s and WinG a while ago:

Okay, well, holy shit. :)