We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 4113 - some SDL-1.2 patches / backports
Summary: some SDL-1.2 patches / backports
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: *don't know* (show other bugs)
Version: HG 1.2
Hardware: All All
: P2 normal
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-03-24 20:43 UTC by Ozkan Sezer
Modified: 2018-05-10 05:50 UTC (History)
0 users

See Also:


Attachments
0001-sdl.m4.patch (608 bytes, patch)
2018-03-24 20:44 UTC, Ozkan Sezer
Details | Diff
0002-win32-config.patch (1.29 KB, patch)
2018-03-24 20:45 UTC, Ozkan Sezer
Details | Diff
0003-os2-fixes.patch (7.83 KB, patch)
2018-03-24 20:45 UTC, Ozkan Sezer
Details | Diff
0004-wcc386-byteswap.patch (1.34 KB, patch)
2018-03-24 20:46 UTC, Ozkan Sezer
Details | Diff
0005-os2-SDLCALL.patch (2.03 KB, patch)
2018-03-24 20:46 UTC, Ozkan Sezer
Details | Diff
0006-pulseaudio.patch (732 bytes, patch)
2018-03-24 20:47 UTC, Ozkan Sezer
Details | Diff
0007-hermes-os2.patch (631 bytes, patch)
2018-03-24 20:48 UTC, Ozkan Sezer
Details | Diff
0008-bug3043.patch (910 bytes, patch)
2018-03-24 20:48 UTC, Ozkan Sezer
Details | Diff
0009-bug3808.patch (1.32 KB, patch)
2018-03-24 20:49 UTC, Ozkan Sezer
Details | Diff
0010-bug2049.patch (1.85 KB, patch)
2018-03-24 20:49 UTC, Ozkan Sezer
Details | Diff
0011-bug3739.patch (1.57 KB, patch)
2018-03-24 20:50 UTC, Ozkan Sezer
Details | Diff
0012-bug2976.patch (2.00 KB, patch)
2018-03-24 20:51 UTC, Ozkan Sezer
Details | Diff
0013-win32-strtoul.patch (1.46 KB, patch)
2018-03-24 20:51 UTC, Ozkan Sezer
Details | Diff
0014-win32-strtoi64.patch (3.67 KB, patch)
2018-03-24 20:52 UTC, Ozkan Sezer
Details | Diff
0015-vs-project-file.patch (657 bytes, patch)
2018-03-24 20:52 UTC, Ozkan Sezer
Details | Diff
0016-bug3332.patch (2.10 KB, patch)
2018-03-24 20:53 UTC, Ozkan Sezer
Details | Diff
018-os2-SDL_Delay.patch (1.16 KB, patch)
2018-03-24 22:24 UTC, Ozkan Sezer
Details | Diff
0019-bug4159.patch (5.81 KB, patch)
2018-05-09 11:47 UTC, Ozkan Sezer
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ozkan Sezer 2018-03-24 20:43:24 UTC
Attaching some a bunch of patches for SDL-1.2 branch,
some are backports, some are not.
Comment 1 Ozkan Sezer 2018-03-24 20:44:25 UTC
Created attachment 3196 [details]
0001-sdl.m4.patch

sdl.m4: don't play with the PATH if cross-compiling

taken from from SDL2
Comment 2 Ozkan Sezer 2018-03-24 20:45:06 UTC
Created attachment 3197 [details]
0002-win32-config.patch

updates to SDL_config_win32.h

- Watcom has stdint.h
- MinGW and Watcom has strtoll() and also strtoll()
- Win32 has strdup(), _i64toa() and _ui64toa()
Comment 3 Ozkan Sezer 2018-03-24 20:45:41 UTC
Created attachment 3198 [details]
0003-os2-fixes.patch

OS/2 fixes:

- update SDL_platform.h to handle __EMX__
- update SDL_config_os2.h
- fix a typo in SDL_dart.c (bitwise AND, not logical AND)
- fix NULL / NULLHANDLE confusion in SDL_sysloadso.c and SDL_os2fslib.c
Comment 4 Ozkan Sezer 2018-03-24 20:46:14 UTC
Created attachment 3199 [details]
0004-wcc386-byteswap.patch

SDL_endian.h: add Watcom inline asm for SDL_Swap16 and SDL_Swap32
Comment 5 Ozkan Sezer 2018-03-24 20:46:46 UTC
Created attachment 3200 [details]
0005-os2-SDLCALL.patch

remove unnecessary restrictions from SDLCALL and DECLSPEC macros for OS/2.
Comment 6 Ozkan Sezer 2018-03-24 20:47:24 UTC
Created attachment 3201 [details]
0006-pulseaudio.patch

SDL_audio.c: do the pulseaudio name dance only if SDL_AUDIO_DRIVER_PULSE is defined.
Comment 7 Ozkan Sezer 2018-03-24 20:48:07 UTC
Created attachment 3202 [details]
0007-hermes-os2.patch

hermes asm: declare segments with proper attributes for OS/2 386 builds
Comment 8 Ozkan Sezer 2018-03-24 20:48:47 UTC
Created attachment 3203 [details]
0008-bug3043.patch

fix alsa configury and cmake checks

SDL's alsa uses snd_pcm_recover() which has been available only since
alsa-lib-1.0.11. (backported fix for bug #3043.)
Comment 9 Ozkan Sezer 2018-03-24 20:49:23 UTC
Created attachment 3204 [details]
0009-bug3808.patch

SDL_stretch.c: backported fix for bug #3808
Comment 10 Ozkan Sezer 2018-03-24 20:49:57 UTC
Created attachment 3205 [details]
0010-bug2049.patch

backport fix for bug #2049:

Make SDL error string formatting deal with nasty corner cases.
Ryan C. Gordon <icculus@icculus.org>
Comment 11 Ozkan Sezer 2018-03-24 20:50:30 UTC
Created attachment 3206 [details]
0011-bug3739.patch

backfort fix for bug #3739: handle %lu, %li and %ld in SDL_SetError.
Comment 12 Ozkan Sezer 2018-03-24 20:51:12 UTC
Created attachment 3207 [details]
0012-bug2976.patch

backport fix for bug #2976:

Fix RGBA<->RGBA blit that was broken with the optimization from bug #11
id.zeta@yahoo.com
Comment 13 Ozkan Sezer 2018-03-24 20:51:48 UTC
Created attachment 3208 [details]
0013-win32-strtoul.patch

add ifdefs to avoid unnecessary 64bit strtoull() in win32 builds
Comment 14 Ozkan Sezer 2018-03-24 20:52:22 UTC
Created attachment 3209 [details]
0014-win32-strtoi64.patch

win32, stdlib: use _strtoi64() and _strtoui64() when available
Comment 15 Ozkan Sezer 2018-03-24 20:52:58 UTC
Created attachment 3210 [details]
0015-vs-project-file.patch

fix VS5 project file.
Comment 16 Ozkan Sezer 2018-03-24 20:53:37 UTC
Created attachment 3211 [details]
0016-bug3332.patch

backport bug #3332 (win32 deadkeys) patch:

https://bugzilla.libsdl.org/show_bug.cgi?id=3332
Eric Wasylishen <ewasylishen@gmail.com>
Comment 17 Ozkan Sezer 2018-03-24 22:24:38 UTC
Created attachment 3213 [details]
018-os2-SDL_Delay.patch

OS/2 SDL_Delay():  add missing else :

it looks like an 'else' is missing after the 'already time-critical'
case for if(DosEnterMustComplete()) check.
Comment 18 Ozkan Sezer 2018-05-09 11:47:15 UTC
Created attachment 3244 [details]
0019-bug4159.patch

Backports fixes for bug #4159, tidies up SDL_syswm.h for it.
Comment 19 Ozkan Sezer 2018-05-10 05:50:02 UTC
Pushed these changes to SDL-1.2 branch.