Fixed time comparison and explicitly delay 1 ms instead of an arbitrary scheduled time.
Fixed bug 2090 - Some joystick inputs are delayed on FreeBSD

kikuchan

Some joysticks with high sampling rate need to be read() more fast,
otherwise it delay user inputs due to internal queue.
Especially, an app that issues SDL_PollEvent() not so frequent
Disable thread naming on Win64 for now.

We can't use _try/_except without the C runtime, and we can't use inline
 asm with the Win64 compiler. We'll need to move this to an .asm file or
 something later.
Workaround for compiling with /W4 warnings on Visual C++.
[SDL] X11+GL: Allow Visual override for GL windows.

SDL provides an SDL_VIDEO_X11_VISUALID environment variable that lets you override
window visuals, but it wasn't being checked for OpenGL windows.

CR: Sam.
Mac: Fix cast warning.
Mac: Turn off momentum-based scrolling.
Mac: Translate Ctrl-Left click to right click.
Fix X11_RestoreWindow() and X11_RaiseWindow() to properly do window activation.

X11_RestoreWindow() had a call ordering problem that prevented activation, and X11_RaiseWindow() wasn't attempting activation. Windows and OS X both activate in these cases.

CR: saml
Added SDL_Direct3D9GetAdapterIndex(), which returns the adapter index you would pass into CreateDevice to get your device on the right monitor in full screen mode.  This fixes the default adapter in SDL_render_d3d.c, which means that tests will work fullscreen off the main monitor now.

CR: Sam
Don't incorrectly report success for negative swap intervals on Mac OS X.
Fixed syntax error in C style block comment.
Default to OpenGL ES 2.0 instead of 1.0 when it's available.
add in High DPI support (aka Retina)

- based on Jørgen's patch with a few bug fixes
Fixed the name of the environment variable to match the name of the hint.
Fixed bug 2100 - directfb fails to build
# User Darren Salt <devspam@moreofthesa.me.uk>
# Date 1379621782 -3600
#      Thu Sep 19 21:16:22 2013 +0100
Work around a false-positive in the X11 mouse wheel code

This false positive occurs when one particular button on my mouse is
pressed. The kernel which I'm using is patched to cause a release event to
be synthesised immediately when the mouse says that this button is pressed
because the mouse doesn't signal release until the button is next pressed.

(Also documents a false negative, observed with the horizontal scroll wheel
on the same mouse.)
Fixed bug 2101 - CWBackPixel causes weird window flickering on window resize

aBothe

I tried to experiment a bit with SDL2 and OpenGL today and noticed that something caused some weird flickering when resizing my nicely drawn SDL2/OpenGL window:
Just after resizing, the background went black and I had to let my OpenGL code redraw the contents..
However, after some hours spent with googling I found out that in OpenGL examples where this CWBackPixel flag was not used when creating X windows, there was no flickering while resizing the window.

See http://www.sbin.org/doc/Xlib/chapt_04.html @ "The Window Background" for more info.
Corrected name of SDL_Color field from unused to a.
Fixed doxygen warning.