Fri, 18 Oct 2013 00:49:59 -0700 Fixed bug 2108 - CMake does not set X11 includes properly for sdl2-config and friends
Sam Lantinga <slouken@libsdl.org> [Fri, 18 Oct 2013 00:49:59 -0700] rev 7835
Fixed bug 2108 - CMake does not set X11 includes properly for sdl2-config and friends Marcus von Appen The autotools-based code uses X_CFLAGS and some hackish x_includes code to add some necessary includes to SDL_CFLAGS for proper X11 and OpenGL include handling. At the moment, the cmake-baed build code does not do that. Below is a patch, which provides the necessary changes to add a proper include to the SDL_CFLAGS.
Fri, 18 Oct 2013 00:47:22 -0700 Fixed bug 2123 - SDL_BlitScaled crashes in src/video/SDL_blit_N.c:2145
Sam Lantinga <slouken@libsdl.org> [Fri, 18 Oct 2013 00:47:22 -0700] rev 7834
Fixed bug 2123 - SDL_BlitScaled crashes in src/video/SDL_blit_N.c:2145 We need to reset the blit function when switching between scaled and unscaled blits.
Fri, 18 Oct 2013 00:13:51 -0700 Fixed bug 2139 - SDL_CreateWindow/WIN_GL_LoadLibrary fails due to external iconv not being able to convert path
Sam Lantinga <slouken@libsdl.org> [Fri, 18 Oct 2013 00:13:51 -0700] rev 7833
Fixed bug 2139 - SDL_CreateWindow/WIN_GL_LoadLibrary fails due to external iconv not being able to convert path Jānis Rūcis Brief history: We recently ported a game from SDL 1.2 to SDL 2. While doing Windows testing, I soon discovered that the game exits without opening a window with my cross-compiled SDL2.dll, but works great with the SDL2.dll from the MinGW SDK on libsdl.org. It was as simple as swapping out the DLLs to make it work. Running the game in Wine showed that the game actually does run, up until the call to SDL_CreateWindow, which fails and leads the game to print out an error: Failure to create window (LoadLibrary("OPENGL32.DLL"): (null)) Which basically says that there was no error, but maybe that's a Wine quirk. The error string originates in SDL_windowsopengl.c, in WIN_GL_LoadLibrary, which contains this piece of code: wpath = WIN_UTF8ToString(path); _this->gl_config.dll_handle = LoadLibrary(wpath); SDL_free(wpath); if (!_this->gl_config.dll_handle) { char message[1024]; SDL_snprintf(message, SDL_arraysize(message), "LoadLibrary(\"%s\")", path); return WIN_SetError(message); } After some digging, I discovered the culprit: WIN_UTF8ToString returns NULL. Why? Because it calls iconv_open from an iconv.dll that does not support the UCS-2-INTERNAL encoding. Why does the official SDL2.dll work? Because it calls no external iconv functions at all. It turns out that the Fedora MinGW infrastructure (from which I obtained the conventiently prebuilt iconv.dll) does not provide a DLL from libiconv, but instead provides a DLL from a minimal Windows library called win-iconv. Which knows a good bit, but doesn't know anything about UCS-2-INTERNAL: http://code.google.com/p/win-iconv/source/browse/trunk/win_iconv.c#155 So there are two problems here: 1) The error message is clearly useless, because LoadLibrary is an innocent bystander. Instead wpath should probably checked for NULL, and a more appropriate error should be set. Ideally something that makes it clear than an external iconv is causing trouble. 2) SDL doomed itself at the ./configure step, by finding an existing iconv and happily using it without confirming support for the mandatory encodings required by SDL. There are certainly a few easy ways out of the situation (although I didn't yet manage to figure out how to prevent ./configure from looking for external iconv), but this had me completely stomped for a good while, so I figured it's worth writing down if anything. (Search also found this, which talks a little about using UTF-16LE instead of UCS-2-INTERNAL: https://bugzilla.libsdl.org/show_bug.cgi?id=2075)
Thu, 17 Oct 2013 23:44:30 -0700 Fixed bug 2155 - automatically remap accelerometer coordinates according to screen orientation on Android
Sam Lantinga <slouken@libsdl.org> [Thu, 17 Oct 2013 23:44:30 -0700] rev 7832
Fixed bug 2155 - automatically remap accelerometer coordinates according to screen orientation on Android Denis Bernard Background information: http://android-developers.blogspot.fr/2010/09/one-screen-turn-deserves-another.html and http://developer.android.com/reference/android/hardware/SensorEvent.html Right now, the Android accelerometer event handler feeds raw accelerometer data to the SDL Joystick driver. The result is that for landscape-only applications, the axis need to be swapped if running on a portrait device (like a phone), and vice-versa: running a portrait only app on a landscape device like a tablet. The purpose of this patch is to perform coordinate remapping of the accelerometer data before feeding it to the SDL joystick driver so that the X axis of the joystick is always aligned with the X axis of the display, same for the Y axis. This has been tested on applications that support screen orientation changes as well as applications with fixed screen orientations, both on phones and tablets.
Thu, 17 Oct 2013 23:40:13 -0700 Fixed bug 2069 - Device addition/removal queries all USB devices rather than only HID devices.
Sam Lantinga <slouken@libsdl.org> [Thu, 17 Oct 2013 23:40:13 -0700] rev 7831
Fixed bug 2069 - Device addition/removal queries all USB devices rather than only HID devices. Andreas Ertelt SDL_dxjoystick.c is setting the classguid for device (dis)connect events to USB Devices in general: dbh.dbcc_classguid = GUID_DEVINTERFACE_USB_DEVICE; Wouldn't it make more sense to have it just subscribe to Hid device events? This would mean less meaningless events reaching the application.
Thu, 17 Oct 2013 23:15:27 -0700 Fixed 1598 - Mingwin build fails on src/audio/xaudio2/SDL_xaudio2.c
Sam Lantinga <slouken@libsdl.org> [Thu, 17 Oct 2013 23:15:27 -0700] rev 7830
Fixed 1598 - Mingwin build fails on src/audio/xaudio2/SDL_xaudio2.c
Thu, 17 Oct 2013 23:05:40 -0700 Removed redundant #ifdef
Sam Lantinga <slouken@libsdl.org> [Thu, 17 Oct 2013 23:05:40 -0700] rev 7829
Removed redundant #ifdef
Thu, 17 Oct 2013 23:02:29 -0700 Fixed building using MinGW
Sam Lantinga <slouken@libsdl.org> [Thu, 17 Oct 2013 23:02:29 -0700] rev 7828
Fixed building using MinGW Our SDL_windows.h needed to be included before anything else so UNICODE is defined.
Fri, 18 Oct 2013 01:36:41 -0400 Don't supply duplicate X11 symbols inside SDL.
Ryan C. Gordon <icculus@icculus.org> [Fri, 18 Oct 2013 01:36:41 -0400] rev 7827
Don't supply duplicate X11 symbols inside SDL. Fixes static linking when something else also uses X11.
Thu, 17 Oct 2013 20:49:30 -0700 Fix to unbreak SDL_GetSystemRAM() on FreeBSD
Sam Lantinga <slouken@libsdl.org> [Thu, 17 Oct 2013 20:49:30 -0700] rev 7826
Fix to unbreak SDL_GetSystemRAM() on FreeBSD Marcus von Appen Revision c47ae79f0de8 of the SDL hg repo introduces the new SDL_GetSystemRAM() function, which breaks the build on FreeBSD. Find attached a patch, which unbreaks the build and also should (for most cases) properly implement the sysctl support it.
(0) -3000 -1000 -300 -100 -10 +10 +100 +300 +1000 tip