Sat, 24 Mar 2018 22:25:33 +0300OS/2 fixes: SDL-1.2
Ozkan Sezer <sezeroz@gmail.com> [Sat, 24 Mar 2018 22:25:33 +0300] rev 11964
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

Sat, 24 Mar 2018 22:21:15 +0300updates to SDL_config_win32.h SDL-1.2
Ozkan Sezer <sezeroz@gmail.com> [Sat, 24 Mar 2018 22:21:15 +0300] rev 11963
updates to SDL_config_win32.h

- Watcom has stdint.h
- MinGW and Watcom has strtoll() and also strtoll()
- Win32 has strdup(), _i64toa() and _ui64toa()

Sat, 24 Mar 2018 22:17:33 +0300sdl.m4: don't play with the PATH if cross-compiling SDL-1.2
Ozkan Sezer <sezeroz@gmail.com> [Sat, 24 Mar 2018 22:17:33 +0300] rev 11962
sdl.m4: don't play with the PATH if cross-compiling

taken from from SDL2

Thu, 10 May 2018 08:28:00 +0300SDL_stdinc.h: move the alloca() includes before begin_code.h
Ozkan Sezer <sezeroz@gmail.com> [Thu, 10 May 2018 08:28:00 +0300] rev 11961
SDL_stdinc.h: move the alloca() includes before begin_code.h

Thu, 10 May 2018 08:25:23 +0300do the direct3d tap dance for overscan hint only if SDL_VIDEO_RENDER_D3D == 1
Ozkan Sezer <sezeroz@gmail.com> [Thu, 10 May 2018 08:25:23 +0300] rev 11960
do the direct3d tap dance for overscan hint only if SDL_VIDEO_RENDER_D3D == 1

Mon, 07 May 2018 20:10:12 -0700Reverted change for bug 4152 - restrict the win10 mouse bug workaround to win10 v1709 only
Sam Lantinga <slouken@libsdl.org> [Mon, 07 May 2018 20:10:12 -0700] rev 11959
Reverted change for bug 4152 - restrict the win10 mouse bug workaround to win10 v1709 only

Daniel Gibson

Sorry, but it seems like Microsoft didn't fix the issue properly.

I just updated my Win10 machine, it now is Version 1803, Build 17134.1

I tested with SDL2 2.0.7 (my workaround was released with 2.0.8) and still got
lots of events that directly undid the prior "real" events - just like before.
(See simple testcase in attachement)
By default it sets SDL_HINT_MOUSE_RELATIVE_MODE_WARP - which triggered (and on my machine still triggers) the buggy behavior. You can start it with -raw, then it'll not set that hint and the events will be as expected.
The easiest way to see the difference is looking at the window title, which shows accumulated X and Y values: If you just move your mouse to the right, in -raw mode the number just increases. In non-raw mode (using mouse warping) it stays around 0.

I also had a WinAPI-only testcase: https://gist.github.com/DanielGibson/b5b033c67b9137f0280af9fc53352c68
It just calls SetCursorPos(320,240); on each WM_MOUSEMOVE event, and it also
logs all those events to a mouseevents.log textfile.
This log indeed looks a bit different since the latest Win10 update: It seems like all those events with x=320 y=240 do arrive - but only after I stopped moving the mouse - even though the cursor seems to be moved back every frame (or so).
So moving the mouse to the right gives X coordinates like
330, 325, 333, 340, 330, ...
and then when stopping movement I get lots of events with X coordinate 320

Mon, 07 May 2018 19:52:25 -0700Fixed bug 4134 - Render targets lose scale quality after minimizing a fullscreen window
Sam Lantinga <slouken@libsdl.org> [Mon, 07 May 2018 19:52:25 -0700] rev 11958
Fixed bug 4134 - Render targets lose scale quality after minimizing a fullscreen window

Olli-Samuli Lehmus

If one creates a window with the SDL_WINDOW_FULLSCREEN_DESKTOP flag, and creates a render target with SDL_SetHint(SDL_HINT_RENDER_SCALE_QUALITY, "linear"), and afterwards sets SDL_SetHint(SDL_HINT_RENDER_SCALE_QUALITY, "nearest"), after minimizing the window, the scale quality hint is lost on the render target. Textures however do keep their interpolation modes.

Mon, 07 May 2018 19:26:02 -0700Fixed bug 4159 - Windows headers are included after packing alignment change
Sam Lantinga <slouken@libsdl.org> [Mon, 07 May 2018 19:26:02 -0700] rev 11957
Fixed bug 4159 - Windows headers are included after packing alignment change

lectem

The SDL_syswm.h header includes the windows.h header after including begin_code.h which changes the structure packing alignment.

It seems this is not safe as suggested by the following warning :
warning C4121: 'JOBOBJECT_IO_RATE_CONTROL_INFORMATION_NATIVE_V2': alignment of a member was sensitive to packing

Sat, 05 May 2018 10:31:03 -0700Fixed bug 4154 - Fix three empty variable tests in configure
Sam Lantinga <slouken@libsdl.org> [Sat, 05 May 2018 10:31:03 -0700] rev 11956
Fixed bug 4154 - Fix three empty variable tests in configure

Zack Middleton

Running top-level SDL configure on macOS 10.11 resulted in the errors below because automake removed the brackets about the tests.

./configure: line 15756: : command not found
./configure: line 15759: -Iinclude -I/Users/zack/SDL/include -idirafter /Users/zack/SDL/src/video/khronos : No such file or directory
./configure: line 15763: : command not found

Sat, 05 May 2018 10:27:53 -0700Fixed bug 4152 - Windows 10 v1803 update seems to have fixed the jumping mouse bug (see bug #3931.)
Sam Lantinga <slouken@libsdl.org> [Sat, 05 May 2018 10:27:53 -0700] rev 11955
Fixed bug 4152 - Windows 10 v1803 update seems to have fixed the jumping mouse bug (see bug #3931.)