Thu, 11 Jul 2013 12:27:39 -0400Removed some unused variables.
Ryan C. Gordon [Thu, 11 Jul 2013 12:27:39 -0400] rev 7403
Removed some unused variables.

Thu, 11 Jul 2013 12:26:18 -0400Fixed compiler warning.
Ryan C. Gordon [Thu, 11 Jul 2013 12:26:18 -0400] rev 7402
Fixed compiler warning.

Thu, 11 Jul 2013 12:17:13 -0400Cleaned up WGL_ACCELERATION_ARB usage.
Ryan C. Gordon [Thu, 11 Jul 2013 12:17:13 -0400] rev 7401
Cleaned up WGL_ACCELERATION_ARB usage.

We now do FULL or NO accel based on the app's preference. If the app didn't
specify, we do FULL then fall back to NO.

(Not specifying anything--a true "don't care" scenario--breaks some ATI
drivers, so we try to keep to the spirit of it while forcing a specific
state.)

Previously, it would always do FULL, and try NO if it failed and the app
had requested NO or DONTCARE.

This is a transplant of hg changesets a04171d6fa11 and d0b7c45e982e from the
SDL-1.2 branch.

Fixes Bugzilla #1254.

Thu, 11 Jul 2013 01:09:45 -0400Added src/thread/pthread/SDL_systls.c to the CMake scripts.
Ryan C. Gordon [Thu, 11 Jul 2013 01:09:45 -0400] rev 7400
Added src/thread/pthread/SDL_systls.c to the CMake scripts.

Wed, 10 Jul 2013 22:13:19 -0700Catch out of memory errors creating a window
Sam Lantinga [Wed, 10 Jul 2013 22:13:19 -0700] rev 7399
Catch out of memory errors creating a window

Wed, 10 Jul 2013 22:06:11 -0700Fixed compile
Sam Lantinga [Wed, 10 Jul 2013 22:06:11 -0700] rev 7398
Fixed compile

Wed, 10 Jul 2013 22:01:24 -0700Fixed bug 1949 - Pulseaudio 32 bit audio formats support
Sam Lantinga [Wed, 10 Jul 2013 22:01:24 -0700] rev 7397
Fixed bug 1949 - Pulseaudio 32 bit audio formats support

Matt Scheirer

Pulse has supported (since version 0.8, at least) 32 bit audio formats that are now becoming available in SDL2. This patch adds those format conversions to the switch clause in the pulseaudio backend.

Wed, 10 Jul 2013 21:57:31 -0700Fixed bug 1953 - Crash at memcpy X11_DispatchEvent(_THIS) Function
Sam Lantinga [Wed, 10 Jul 2013 21:57:31 -0700] rev 7396
Fixed bug 1953 - Crash at memcpy X11_DispatchEvent(_THIS) Function

Nitz

In Function X11_DispatchEvent(_THIS), case SelectionNotify :
static void
X11_DispatchEvent(_THIS)
{
// Some Code
case SelectionNotify: {
//Some Code
SDL_bool expect_lf = SDL_FALSE;
char *start = NULL; // Initialised with NULL
char *scan = (char*)p.data;
char *fn;
char *uri;
int length = 0;
while (p.count--) {
if (!expect_lf) {
if (*scan==0x0D) {
expect_lf = SDL_TRUE;
} else if(start == NULL) {
start = scan;
length = 0;
}
length++;
} else {
if (*scan==0x0A && length>0) {
uri = malloc(length--);

memcpy(uri, start, length); // Problem is Here, start is still NULL if control comes to else statement without initialising the start pointer, which is wrong

uri[length] = 0;
fn = X11_URIToLocal(uri);
if (fn) SDL_SendDropFile(fn);
free(uri);
}
expect_lf = SDL_FALSE;
start = NULL;
}
scan++;
}
}
As shown above how start pointer remains NULL, Patch for this issue would be:
if (*scan==0x0D) {
expect_lf = SDL_TRUE;
}
if(start == NULL) {
start = scan;
length = 0;
}
Just replace else if statement with if.

Wed, 10 Jul 2013 23:43:35 -0400Added src/thread/windows/SDL_systls.c to CMakeLists.txt (thanks, Charles!).
Ryan C. Gordon [Wed, 10 Jul 2013 23:43:35 -0400] rev 7395
Added src/thread/windows/SDL_systls.c to CMakeLists.txt (thanks, Charles!).

Fixes Bugzilla #1955.

Wed, 10 Jul 2013 20:17:20 -0700Added PowerPC and ARM versions of the memory barrier functions.
Sam Lantinga [Wed, 10 Jul 2013 20:17:20 -0700] rev 7394
Added PowerPC and ARM versions of the memory barrier functions.