Thu, 04 Jan 2018 22:16:42 -0400metal: use a private instead of managed buffer for the renderer's non-changing constant data.
Alex Szpakowski <slime73@gmail.com> [Thu, 04 Jan 2018 22:16:42 -0400] rev 11818
metal: use a private instead of managed buffer for the renderer's non-changing constant data.

Recommended by Xcode's Metal frame capture analysis.

Thu, 04 Jan 2018 19:29:33 -0400metal: Implement fast hardware clearing when possible, by deferring the start of a render pass until a clear or draw operation happens.
Alex Szpakowski <slime73@gmail.com> [Thu, 04 Jan 2018 19:29:33 -0400] rev 11817
metal: Implement fast hardware clearing when possible, by deferring the start of a render pass until a clear or draw operation happens.

Wed, 03 Jan 2018 11:31:42 -0800Fixed spacing in copyright headers
Sam Lantinga <slouken@libsdl.org> [Wed, 03 Jan 2018 11:31:42 -0800] rev 11816
Fixed spacing in copyright headers

Wed, 03 Jan 2018 10:58:58 -0800Fixed bug 4018 - Implement SDL_GetWindowBordersSize() under Windows/Win32/WinAPI
Sam Lantinga <slouken@libsdl.org> [Wed, 03 Jan 2018 10:58:58 -0800] rev 11815
Fixed bug 4018 - Implement SDL_GetWindowBordersSize() under Windows/Win32/WinAPI

Ismael Ferreras Morezuelas (Swyter)

As a new year gift I have implemented the Windows version of SDL_GetWindowBordersSize(). I needed it for auto-selecting a cozy window size for the game I'm currently working on and noticed that it only worked under X11, so I thought it could be a good excuse to contribute back more stuff. The Mercurial patch is attached as a .diff file. Let me know what you think.

Happy 2018 to all the SDL2 devs and users!

--

PS: Keep in mind that Windows 10 includes the 8px invisible grip borders as part of the frame. There's a way of detecting if Aero/DWM is being used and ask only for the visible rect, but I believe that GetWindowRect() is doing that for a reason and working as intended, so I haven't changed it. (See [2])


References:
[1]: http://www.firststeps.ru/mfc/winapi/r.php?72
[2]: https://stackoverflow.com/a/34143777/674685
[3]: https://stackoverflow.com/a/431548/674685
[4]: https://wiki.libsdl.org/SDL_GetWindowBordersSize

Wed, 03 Jan 2018 10:49:26 -0800Fixed bug 4013 - Wayland: fix videoquit on multimonitor system
Sam Lantinga <slouken@libsdl.org> [Wed, 03 Jan 2018 10:49:26 -0800] rev 11814
Fixed bug 4013 - Wayland: fix videoquit on multimonitor system

Vladimir

On multimonitor system Wayland_VideoQuit invalid deiniting.

Tested in Centos7 + Weston

Wed, 03 Jan 2018 10:43:01 -0800Fixed bug 4012 - Wayland: invalid direction on mouse wheel
Sam Lantinga <slouken@libsdl.org> [Wed, 03 Jan 2018 10:43:01 -0800] rev 11813
Fixed bug 4012 - Wayland: invalid direction on mouse wheel

Vladimir

Invalid direction on mouse wheel

Patch tested in Centos 7 + Weston

Wed, 03 Jan 2018 10:07:27 -0800Fixed bug 4011 - Wayland: fix free cursor
Sam Lantinga <slouken@libsdl.org> [Wed, 03 Jan 2018 10:07:27 -0800] rev 11812
Fixed bug 4011 - Wayland: fix free cursor

Vladimir

Sometimes SDL application crashes on cursor free.

Patch tested under Centos 7 + weston

Wed, 03 Jan 2018 10:03:25 -0800Updated copyright for 2018
Sam Lantinga <slouken@libsdl.org> [Wed, 03 Jan 2018 10:03:25 -0800] rev 11811
Updated copyright for 2018

Wed, 03 Jan 2018 00:43:01 -0400metal: Misc. improvements.
Alex Szpakowski <slime73@gmail.com> [Wed, 03 Jan 2018 00:43:01 -0400] rev 11810
metal: Misc. improvements.

- Use a single buffer for various non-changing constants accessed by the GPU, instead of multiple buffers.
- Do the half-pixel offset for points and lines using a transform matrix so we don't need a malloc when rendering.
- Don't add a half-pixel offset for other primitives and textures. This matches D3D and GL render behaviour.
- Remove the half-texel texture coordinate offset since it's not needed now that there's no more half-pixel position offset when rendering a texture.
- Don't try to set texture usage on iOS 8 since it doesn't exist there.

Tue, 02 Jan 2018 21:44:28 -0400metal and moltenvk: fix highdpi.
Alex Szpakowski <slime73@gmail.com> [Tue, 02 Jan 2018 21:44:28 -0400] rev 11809
metal and moltenvk: fix highdpi.