Fri, 07 Oct 2016 18:24:34 -0700Fixed bug 3438 - SDL_GameControllerEventWatcher: Log on event with value >= k_nMaxReverseEntries
Sam Lantinga <slouken@libsdl.org> [Fri, 07 Oct 2016 18:24:34 -0700] rev 10495
Fixed bug 3438 - SDL_GameControllerEventWatcher: Log on event with value >= k_nMaxReverseEntries

Mon, 03 Oct 2016 11:35:34 +0100Improve X11 key handling when XKB isn't available + add xvnc scancodes.
Alex Baines <alex@abaines.me.uk> [Mon, 03 Oct 2016 11:35:34 +0100] rev 10494
Improve X11 key handling when XKB isn't available + add xvnc scancodes.

Based on a patch by Bill Lash (see bug 3094).

Sat, 15 Aug 2015 00:25:52 -0500Additional patch to correct the number key assignments, and add assignments for keys that were missed
Bill Lash <william.lash@gmail.com> [Sat, 15 Aug 2015 00:25:52 -0500] rev 10493
Additional patch to correct the number key assignments, and add assignments for keys that were missed

Fri, 07 Oct 2016 18:11:03 -0700Fixed bug 3063 - Wayland: SDL resizes EGL surface to 0x0.
Sam Lantinga <slouken@libsdl.org> [Fri, 07 Oct 2016 18:11:03 -0700] rev 10492
Fixed bug 3063 - Wayland: SDL resizes EGL surface to 0x0.

x414e54

Wayland will sometimes send empty resize events (0 width and 0 height) to the client. I have not worked out the exact conditions a client would receive these but I can assume it might be if the window is offscreen or not mapped yet.

This causes issues with some SDL clients as they receive the 0x0 event and unexpected resize event or might not request to resize back to the correct size.

As per the wl_shell Wayland spec configure events are only a suggestion and the client is free to ignore or pick a different size (this is how min/max and fixed aspect ratio is supped to be implemented).

A patch is attached but is just the first iteration and I will fix any issues such as checking for FULLSCREEN/MAXIMIZED or RESIZABLE flags unless someone else fixes this first.

I have update to take into account non resizable and fullscreen windows. Also adding in maximize/restore and title functions for Wayland.

Fri, 07 Oct 2016 18:09:09 -0700Fixed bug 3061 - Selecting the dummy video driver on Mac OS X results in an error
Sam Lantinga <slouken@libsdl.org> [Fri, 07 Oct 2016 18:09:09 -0700] rev 10491
Fixed bug 3061 - Selecting the dummy video driver on Mac OS X results in an error

Darren Kulp

The dummy video driver is not available on Mac OS X if SDL_VIDEO_OPENGL is set at library compilation time.

In src/video/SDL_video.c, there is a compile-time check in SDL_CreateWindow() for (SDL_VIDEO_OPENGL && __MACOSX__). When it succeeds, SDL_WINDOW_OPENGL is always requested. Since the dummy video driver does not supply an OpenGL implementation, the error "No OpenGL support in video driver" is supplied to the user, and SDL_CreateWindow() is exited early.

Fri, 07 Oct 2016 18:03:08 -0700Fixed bug 3043 - fix alsa configury and cmake checks
Sam Lantinga <slouken@libsdl.org> [Fri, 07 Oct 2016 18:03:08 -0700] rev 10490
Fixed bug 3043 - fix alsa configury and cmake checks

Ozkan Sezer

SDL's alsa uses snd_pcm_recover() which has been available only since alsa-lib-1.0.11.

Fri, 07 Oct 2016 18:00:30 -0700Fixed bug 3029 - software renderer cuts off edges when rotate-blitting with a multiple of 90 degrees
Sam Lantinga <slouken@libsdl.org> [Fri, 07 Oct 2016 18:00:30 -0700] rev 10489
Fixed bug 3029 - software renderer cuts off edges when rotate-blitting with a multiple of 90 degrees

Adam M.

When doing a rotated texture copy with the software renderer, where the angle is a multiple of 90 degrees, one or two edges of the image get cut off. This is because of the following line in sw_rotate.c:
if ((unsigned)dx < (unsigned)sw && (unsigned)dy < (unsigned)sh) {
which is effectively saying:
if (dx >= 0 && dx < src->w-1 && dy >= 0 && dy < src->h-1) {

As a result, it doesn't process pixels in the right column or bottom row of the source image (except when they're accessed as part of the bilinear filtering for nearby pixels). This causes it to look like the edges are cut off, and it's especially obvious with an exact multiple of 90 degrees.

Fri, 07 Oct 2016 17:58:02 -0700Fixed bug 3022 - SDL_UnlockMutex(SDL_EventQ.lock) in SDL_PeepEvents can cause error when lock is null
Sam Lantinga <slouken@libsdl.org> [Fri, 07 Oct 2016 17:58:02 -0700] rev 10488
Fixed bug 3022 - SDL_UnlockMutex(SDL_EventQ.lock) in SDL_PeepEvents can cause error when lock is null

Fri, 07 Oct 2016 17:49:33 -0700Fixed bug 2983 - Update Android.readme to include Tegra Graphics Debugger compatibility tip
Sam Lantinga <slouken@libsdl.org> [Fri, 07 Oct 2016 17:49:33 -0700] rev 10487
Fixed bug 2983 - Update Android.readme to include Tegra Graphics Debugger compatibility tip

Michael Labbé

NVidia has released some pretty nice Tegra profiling tools for their Android devices. The NVidia Tegra Graphics Debugger works by providing an interposer library that intercepts ES2 and EGL calls. You must link against these libraries.

Unfortunately, this quietly fails with SDL2 because libEGL and libGLES2 are dynamically loaded with dlopen().

NVidia offers a secondary approach to using the Tegra Graphics Debugger: root your device and install a global interposer library. Almost no devs will try this first if they don’t have a rooted device.

I propose an update to the Android readme that explains why the static linking approach recommended by NVidia doesn’t work.

Fri, 07 Oct 2016 17:46:58 -0700Converted README documentation to DOS text format
Sam Lantinga <slouken@libsdl.org> [Fri, 07 Oct 2016 17:46:58 -0700] rev 10486
Converted README documentation to DOS text format