Sun, 14 Jul 2013 11:28:18 -0400 Fixed off-by-one error in SDL_AudioQuit() (thanks, Rainer!).
Ryan C. Gordon <icculus@icculus.org> [Sun, 14 Jul 2013 11:28:18 -0400] rev 7446
Fixed off-by-one error in SDL_AudioQuit() (thanks, Rainer!). Audio Devices IDs are offset by one. Fixes Bugzilla #1971.
Sun, 14 Jul 2013 14:32:26 +0200 Removed unused internal function.
Philipp Wiesemann <philipp.wiesemann@arcor.de> [Sun, 14 Jul 2013 14:32:26 +0200] rev 7445
Removed unused internal function. Found by Cppcheck.
Sun, 14 Jul 2013 13:33:54 +0200 Fixed compiler warnings in test program by using wrapped functions.
Philipp Wiesemann <philipp.wiesemann@arcor.de> [Sun, 14 Jul 2013 13:33:54 +0200] rev 7444
Fixed compiler warnings in test program by using wrapped functions.
Sun, 14 Jul 2013 13:30:26 +0200 Fixed compiler warnings in test programs by adding return statements.
Philipp Wiesemann <philipp.wiesemann@arcor.de> [Sun, 14 Jul 2013 13:30:26 +0200] rev 7443
Fixed compiler warnings in test programs by adding return statements.
Sun, 14 Jul 2013 13:27:19 +0200 Fixed compiler warnings in test programs by adding includes directives.
Philipp Wiesemann <philipp.wiesemann@arcor.de> [Sun, 14 Jul 2013 13:27:19 +0200] rev 7442
Fixed compiler warnings in test programs by adding includes directives.
Sat, 13 Jul 2013 21:56:31 -0400 Changed some for-loops to be a bit more clear.
Ryan C. Gordon <icculus@icculus.org> [Sat, 13 Jul 2013 21:56:31 -0400] rev 7441
Changed some for-loops to be a bit more clear.
Sat, 13 Jul 2013 21:50:40 -0400 Don't copy structs to stack in cmpmodes(), use const pointers instead.
Ryan C. Gordon <icculus@icculus.org> [Sat, 13 Jul 2013 21:50:40 -0400] rev 7440
Don't copy structs to stack in cmpmodes(), use const pointers instead. (and return 0 immediately if the pointers are the same.)
Sat, 13 Jul 2013 21:42:57 -0400 Don't use SDL_memcmp() on modes to check if they've already been added.
Ryan C. Gordon <icculus@icculus.org> [Sat, 13 Jul 2013 21:42:57 -0400] rev 7439
Don't use SDL_memcmp() on modes to check if they've already been added. They might have different driverdata values and thus not match. Fixes Bugzilla #1407.
Sat, 13 Jul 2013 20:24:09 -0400 Explicitly check for Xext.h in the CMake project, fail if missing.
Ryan C. Gordon <icculus@icculus.org> [Sat, 13 Jul 2013 20:24:09 -0400] rev 7438
Explicitly check for Xext.h in the CMake project, fail if missing. Added to match configure script change in hg changeset 8f118396264b.
Sat, 13 Jul 2013 21:13:09 +0200 Fixed compiler warnings in test programs.
Philipp Wiesemann <philipp.wiesemann@arcor.de> [Sat, 13 Jul 2013 21:13:09 +0200] rev 7437
Fixed compiler warnings in test programs.
Sat, 13 Jul 2013 21:06:56 +0200 Added missing fclose() in test program.
Philipp Wiesemann <philipp.wiesemann@arcor.de> [Sat, 13 Jul 2013 21:06:56 +0200] rev 7436
Added missing fclose() in test program. Found by Cppcheck.
Sat, 13 Jul 2013 21:05:13 +0200 Removed unused variable and not needed assignment in test program.
Philipp Wiesemann <philipp.wiesemann@arcor.de> [Sat, 13 Jul 2013 21:05:13 +0200] rev 7435
Removed unused variable and not needed assignment in test program. Found by Cppcheck.
Sat, 13 Jul 2013 21:02:23 +0200 Fixed printf() usage in test program.
Philipp Wiesemann <philipp.wiesemann@arcor.de> [Sat, 13 Jul 2013 21:02:23 +0200] rev 7434
Fixed printf() usage in test program. Found by Cppcheck.
Sat, 13 Jul 2013 10:41:57 -0700 Added a configure check for Xext.h
Sam Lantinga <slouken@libsdl.org> [Sat, 13 Jul 2013 10:41:57 -0700] rev 7433
Added a configure check for Xext.h
Sat, 13 Jul 2013 03:13:41 -0700 Added a hint to control the Windows timer resolution: SDL_HINT_TIMER_RESOLUTION
Sam Lantinga <slouken@libsdl.org> [Sat, 13 Jul 2013 03:13:41 -0700] rev 7432
Added a hint to control the Windows timer resolution: SDL_HINT_TIMER_RESOLUTION Added an API to watch hint changes: SDL_AddHintCallback(), SDL_DelHintCallback() You can now dynamically set the joystick background event hint.
Sat, 13 Jul 2013 11:06:34 +0800 Only get desktop modes from Xinerama if we can't use XRandR (fix #1956)
David Gow <david@ingeniumdigital.com> [Sat, 13 Jul 2013 11:06:34 +0800] rev 7431
Only get desktop modes from Xinerama if we can't use XRandR (fix #1956)
Fri, 12 Jul 2013 23:45:12 -0700 Fixed bug 1938 - Buffer overflows in the Windows IME code
Sam Lantinga <slouken@libsdl.org> [Fri, 12 Jul 2013 23:45:12 -0700] rev 7430
Fixed bug 1938 - Buffer overflows in the Windows IME code norfanin There are a few potential buffer overflows in the Windows IME code located in the SDL_windowskeyboard.c file. [1] They mainly happen because the code passes the number of bytes instead of the number of characters to the wide-character string functions wcslcpy and wcslcat. In another place, the code assumes that the composition cursor position can never go beyond the size of the composition string buffer. Some of these overflows and overruns can occur with the Japanese IME on Vista and simplified Chinese IME on XP. I don't actually speak those languages and it's my first time using the IMEs, so I probably pushed them to the limit where nobody would still be compositing proper words. They don't cause any immediate access violation, although the possibility of trashing the SDL_VideoData structure is never good. I've attached a patch that fixes those I found, but because I'm very new to the code it may be worthwhile if someone else also has a look over the code. I'll go over the changes in my patch and explain what, why and how. In the function IME_GetReadingString, there is a wcslcpy to copy the reading string from the IMC memory to the SDL reading string buffer. [2] This assumes that the length of the reading string never exceeds the SDL buffer size. I guess that is possible and I wasn't able to get a long reading string in my tests, but the patch adds a simple check anyway. In the function IME_GetCompositionString, the first line calls ImmGetCompositionStringW to get the composition string. [3] The Microsoft documentation states that the fourth argument is for the destination buffer size in bytes (even with unicode) and the code correctly passes the value of sizeof. However, at the end of IME_GetCompositionString, the string is terminated by setting the element at index 'length' to 0. 'length' is calculated by dividing the number of bytes (those written by ImmGetCompositionStringW) by 2. If it managed to write 64 bytes, the code sets element 32 to 0, which would be the beginning of the reading string if the alignment places it there. My patch adds a subtraction to the fourth argument, essentially making it always pass 62 instead. In the same function, the code assumes that the composition cursor position doesn't go beyond the buffer size. [4] My patch adds a simple range check in front of the indirection. In the function IME_SendEditingEvent, the size for the wide-character string functions is passed in bytes instead of characters. [5] Oddly, the current code subtracts 'len' from the size in one function call. This results in truncation in certain situations as the third argument is the number of characters available in the destination buffer. If I'm understanding it correctly, this is supposed to copy x characters of the composition buffer, then concatenate the whole reading string buffer, and then the rest of the composition buffer (where x is the composition cursor position). I don't see how a truncation of the rest would be helpful here. Perhaps this is just an error? My patch removes the subtraction. In the function UIElementSink_UpdateUIElement, bytes instead of characters is used again for a wcslcpy call. [6]
Fri, 12 Jul 2013 23:28:34 -0700 Don't set the current OpenGL window if the context creation fails.
Sam Lantinga <slouken@libsdl.org> [Fri, 12 Jul 2013 23:28:34 -0700] rev 7429
Don't set the current OpenGL window if the context creation fails.
Fri, 12 Jul 2013 23:16:11 -0700 Updated supported iOS version.
Sam Lantinga <slouken@libsdl.org> [Fri, 12 Jul 2013 23:16:11 -0700] rev 7428
Updated supported iOS version.
Sat, 13 Jul 2013 00:10:25 -0400 CMake project should install sdl2.m4.
Ryan C. Gordon <icculus@icculus.org> [Sat, 13 Jul 2013 00:10:25 -0400] rev 7427
CMake project should install sdl2.m4. Fixes Bugzilla #1809.
Sat, 13 Jul 2013 00:07:34 -0400 CMake project should enable pthreads for Mac OS X by default.
Ryan C. Gordon <icculus@icculus.org> [Sat, 13 Jul 2013 00:07:34 -0400] rev 7426
CMake project should enable pthreads for Mac OS X by default.
Fri, 12 Jul 2013 23:38:44 -0400 Fixed iOS context sharing again.
Ryan C. Gordon <icculus@icculus.org> [Fri, 12 Jul 2013 23:38:44 -0400] rev 7425
Fixed iOS context sharing again. I suck at Objective-C.
Fri, 12 Jul 2013 23:32:54 -0400 Patched to compile.
Ryan C. Gordon <icculus@icculus.org> [Fri, 12 Jul 2013 23:32:54 -0400] rev 7424
Patched to compile.
Fri, 12 Jul 2013 23:30:26 -0400 Implement SDL_GL_SHARE_WITH_CURRENT_CONTEXT for iOS.
Ryan C. Gordon <icculus@icculus.org> [Fri, 12 Jul 2013 23:30:26 -0400] rev 7423
Implement SDL_GL_SHARE_WITH_CURRENT_CONTEXT for iOS. Fixes Bugzilla #1947.
Fri, 12 Jul 2013 10:44:55 -0700 Moved the game controller database to a separate file and added a script to sort the entries so we can easily check for duplicates
Sam Lantinga <slouken@libsdl.org> [Fri, 12 Jul 2013 10:44:55 -0700] rev 7422
Moved the game controller database to a separate file and added a script to sort the entries so we can easily check for duplicates
Fri, 12 Jul 2013 08:21:28 -0700 Oops, that was supposed to be in the Linux section.
Sam Lantinga <slouken@libsdl.org> [Fri, 12 Jul 2013 08:21:28 -0700] rev 7421
Oops, that was supposed to be in the Linux section.
Fri, 12 Jul 2013 00:55:04 -0700 Fixed bug 1810 - xxx_RenderReadPixels - incorrect behaviour in certain conditions
Sam Lantinga <slouken@libsdl.org> [Fri, 12 Jul 2013 00:55:04 -0700] rev 7420
Fixed bug 1810 - xxx_RenderReadPixels - incorrect behaviour in certain conditions PoopiSan GLES2_RenderReadPixels, GLES_RenderReadPixels, GL_RenderReadPixels and possibly other backends is incorrectly implemented. If the current target viewport is different than window size the function is reading garbage and according to the function documentation should work with any rendering target "Read pixels from the current rendering target.". this seems to be caused by this line: ... SDL_GetWindowSize(window, &w, &h);
Fri, 12 Jul 2013 00:43:16 -0700 Don't crash if the current render target is destroyed.
Sam Lantinga <slouken@libsdl.org> [Fri, 12 Jul 2013 00:43:16 -0700] rev 7419
Don't crash if the current render target is destroyed.
Fri, 12 Jul 2013 09:55:58 +0300 Fixed gcc warnings for apps using SDL headers with -Wstrict-prototypes flag.
Dimitris Zenios <dimitris.zenios@gmail.com> [Fri, 12 Jul 2013 09:55:58 +0300] rev 7418
Fixed gcc warnings for apps using SDL headers with -Wstrict-prototypes flag.
Thu, 11 Jul 2013 23:21:09 -0700 Fixed name of the Logitech F710 controller
Sam Lantinga <slouken@libsdl.org> [Thu, 11 Jul 2013 23:21:09 -0700] rev 7417
Fixed name of the Logitech F710 controller
(0) -3000 -1000 -300 -100 -50 -30 +30 +50 +100 +300 +1000 tip