Log

Author Commit Date CI Message
Gabriel Jacobo 620510b3 2014-06-23T09:18:31 Fix compiler warning
Sam Lantinga 553028c9 2014-06-22T11:02:56 Partial fix for bug 2556 - add compilation flag -Wshadow I added -Wshadow and then turned it off again because of massive variable shadowing in the blit macros. Feel free to go through that code and fix these if you want. Just uncomment CheckWarnShadow in configure.in if you want to try this.
Sam Lantinga 9f5e3ed7 2014-06-22T10:05:59 Fixed bug 1673 - BEXT wave files only have extra metadata that you can easily skip through bill In SDL_wave.c, BEXT wave files with "bext" instead of "fmt " are choked on if (chunk.magic != FMT) { SDL_SetError("Complex WAVE files not supported"); was_error = 1; goto done; } BEXT files http://en.wikipedia.org/wiki/Broadcast_Wave_Format actually playback the same as regular waves. All they have is (A LOT OF) extra header info. To open them, just SKIP the "bext" chunk, and the "fmt " chunk will be a couple of hundred bytes later. The "fmt " chunk is also bloated, but if you skip past the extra information to the "data" chunk, there is nothing different about a BEXT wave file than a "normal" one. You can then load the data and proceed as normal.
Sam Lantinga cff9eac6 2014-06-22T09:48:46 Fixed bug 2579 - SDL fails to compile on Windows when only EGL+OpenGL ES defined callow.mark Compiling with SDL_VIDEO_RENDER_OGL=0, SDL_VIDEO_OPENGL=0, SDL_VIDEO_OPENGL_WGL=0, SDL_VIDEO_RENDER_OGL_ES2=1, SDL_VIDEO_OPENGL_ES2=1 and SDL_VIDEO_OPENGL_EGL=1 set in SDL_config_windows.h fails. A patch is attached. See bug #2570 for reasons you might want to compile this way.
Sam Lantinga 1b3d4e6d 2014-06-22T09:42:43 565 textures have higher priority than 555 textures
Sam Lantinga d65ac778 2014-06-22T02:48:43 Restore window OpenGL state if creating an OpenGL renderer fails
Sam Lantinga b7b6d8ab 2014-06-22T02:30:36 Fixed crash initializing OpenGL ES renderer if OpenGL renderer fails
Sam Lantinga 5df11f8a 2014-06-21T21:46:42 Made SDL_PIXELFORMAT_ARGB8888 the default texture format for consistency across renderer implementations.
Sam Lantinga 7b7828a4 2014-06-21T21:30:49 You shouldn't get axis and hat events when your application doesn't have focus (unless you use the SDL_HINT_JOYSTICK_ALLOW_BACKGROUND_EVENTS hint)
Sam Lantinga f8b75b1a 2014-06-21T20:40:00 Fixed bug 2562 - SDL_hapticlist/_tail not set correctly Zachary L SDL_hapticlist and SDL_hapticlist_tail are not set correctly when quitting the subsystem. This matters because they are represented as global variables. In the case you quit and reinitialize the subsystems, problems with dangling pointers arise. For instance, SDL_hapticlist_tail will not be null on second initialization and because of the check on line 298, it will fail to set SDL_hapticlist appropriately. This can cause a few things to go wrong, like feeding SDL_strcmp a null fname which can cause a segfault.
Sam Lantinga e8d84fbf 2014-06-21T20:35:36 Merged changes from Alexey Petruchik to support Android obb files http://developer.android.com/google/play/expansion-files.html
Sam Lantinga f448815e 2014-06-21T17:31:36 Added libibus-1.0-dev build dependency
Sam Lantinga b56b37cd 2014-06-21T17:25:59 Fixed warning when building without ibus
Sam Lantinga fe63e00b 2014-06-21T12:50:03 Generated configure from recent configure.in changes (for ibus support)
Sam Lantinga 62bdecc8 2014-06-21T12:45:54 Fixed compiler warning with new OpenGL ES header files
Sam Lantinga d7924c73 2014-06-21T12:43:57 Fixed bug 2563 - Remove obsolete code for supporting iOS < 5 Alex Szpakowski Now that SDL for iOS requires at least iOS 5.1 at runtime, there are several old codepaths in the UIKit backend which can be removed. I've attached a patch which does so.
Sam Lantinga e8f8e672 2014-06-21T12:38:46 Fixed bug 2595 - Padded, non-contiguous YUV does not display correctly using OpenGL ES 2.0 renderer Alvin The new OpenGL ES 2.0 YUV Texture support does not correctly display padded, non-contiguous YUV data. I am using SDL2 95bd3d33482e (as provided by 'hg id --id') from Mercurial. The YUV data I am using is provided by the FFMPEG family of libraries. According to FFMPEG's documentation, "The linesize [pitch] may be larger than the size of usable data -- there may be extra padding present for performance reasons." The dimensions of the video file that I am using are 480x360. What I get from FFMPEG is a Ypitch of 512, and Upitch and Vpitch are both 256. When I pack new Y, U and V buffers with only the "usable" data (Ypitch is 480 and Upitch and Vpitch are both 240), and use those new buffers, the image is display correctly. It appears that the Ypitch, Upitch and Vpitch parameters are not being used by SDL_UpdateYUVTexture(). I use SDL_PIXELFORMAT_YV12 for my YUV texture, however, the same results are seen when I use SDL_PIXELFORMAT_IYUV. Not sure if this is related or not, but when I render the YUV texture (padded and unpadded) to a RGB24 texture, the resulting image is greyscale (or could by just the Y channel). The URL field for this bug entry is set to my email (SDL mailing list archive) which includes an example image of what I see when rendering padded, non-contiguous YUV data.
Sam Lantinga 0d673844 2014-06-21T11:52:53 Fixed bug 2596 - SDL_SetError fails on on NULL on systems with vsnprintf sfalexrog On systems with vsnprintf call SDL_SetError fails when passed a NULL as an argument. SDL's implementation checks for NULL (as seen in the commit: https://hg.libsdl.org/SDL/rev/835403a6aec8), but system implementation may crash.
Sam Lantinga 6c0a7b99 2014-06-21T11:50:18 Added NaCl to the supported platforms list
Sam Lantinga 80e401ab 2014-06-21T11:48:12 Added NaCl to SDL_GetPlatform()
Sam Lantinga 640e0415 2014-06-21T11:42:46 Added OpenGL ES headers to public headers
Sam Lantinga 8ef56511 2014-06-21T11:36:00 Fixed compiler warning
Sam Lantinga ce84813a 2014-06-21T11:24:06 commit 9e211e646f9d51dc1372c9f3c8f47a78caf4f2a5 Author: Sam Clegg <sbc@chromium.org> Date: Fri Jun 20 12:52:11 2014 Fix win32 build which was failing due to missing PRIs64. This change adds definitions for the C99 PRIs16 and PRIu64 which are missing from <stdint.h> on at last win32 and possibly other platforms. These already existed in testgesture.c so I removed them from there also.
Sam Lantinga 61fea2a8 2014-06-21T11:16:26 Removed references to Raspberry Pi
Ryan C. Gordon 87980526 2014-06-20T22:38:36 Added script for buildbot to use on NaCl target.
Gabriel Jacobo 3b217eef 2014-06-20T11:50:31 Fix another NaCl warning
Sam Clegg 7e52722d 2014-06-20T11:10:16 Fix compiler warnings in Native Client and Linux builds.
Gabriel Jacobo 6c5cb540 2014-06-20T11:01:05 Ooops, code that resists erasure, I've seen that in a movie.
Gabriel Jacobo 553cc07e 2014-06-20T10:59:51 Initialize nacl_io, removes SDL_NaClMount/Umount It's just easier to use nacl_io's mount/umount directly.
Sam Clegg 199aff7b 2014-06-19T00:40:09 Make autoconf-based build quiet by default. Add V=1 to the make command line will show the full commands but by default we just show the tool-type and the output file. This is generally much easier on the eye and makes warnings and errors more clearly visible.
Alex Baines 41a39837 2014-06-18T20:11:39 Add IBus IME Support, move DBus code to its own file. (v3.3 squashed)
Gabriel Jacobo 715a9829 2014-06-18T10:04:21 Fix file name typo, thanks Sam Clegg!
Wander Lairson Costa 2334aa86 2014-06-16T10:58:09 Add suport for "make uninstall" to cmake.
Gabriel Jacobo ab238dc6 2014-06-16T09:54:33 Assorted fixes for NaCl. Hat tip to Sylvain Becker
Gabriel Jacobo 9e55ace8 2014-06-16T09:47:23 Fixes #2583, clean up EGL initialization
Sam Lantinga 047c19ce 2014-06-15T19:32:39 Fixed bug 2558 - Missing FINGERUP in Android Sylvain If you play with the TouchScreen with +3 fingers randomly / pressing simultaneously all fingers. You triggers FINGER DOWN events, but not always all the associated FINGER UP events. So, after a while SDL_GetNumFingers() can report a wrong number of fingers pressed ! The explanation is hidden there : http://developer.android.com/reference/android/view/MotionEvent.html Each pointer has a unique id that is assigned when it first goes down (indicated by ACTION_DOWN or ACTION_POINTER_DOWN). A pointer id remains valid until the pointer eventually goes up (indicated by ACTION_UP or ACTION_POINTER_UP) or when the gesture is canceled (indicated by ACTION_CANCEL). in ACTION_CANCEL : The current gesture has been aborted. You will not receive any more points in it. You should treat this as an up event, but not perform any action that you normally would. Constant Value: 3 (0x00000003)
Sam Lantinga 260549d1 2014-06-15T18:31:30 Fixed bug 2567 - x11: Local dropped files are not URI-decoded Melker Narikka Local files that are dropped onto a window under X11 are not going through a URI decoding step, resulting in the following in my test application: Dropped file /home/meklu/Pictures/Screenshot%20from%202013-10-30%2014:04:50.png Couldn't load /home/meklu/Pictures/Screenshot%20from%202013-10-30%2014:04:50.png Expected result: Dropped file /home/meklu/Pictures/Screenshot from 2013-10-30 14:04:50.png Loaded /home/meklu/Pictures/Screenshot from 2013-10-30 14:04:50.png successfully I've attached a patch that fixes the issue by doing URI decoding in-place on the file string buffer.
Sam Lantinga af50403e 2014-06-15T18:09:39 Fixed bug 2575 - Current GL context tracking fails Ronie Salgado The GL Renderer current context tracking fails when one window is used with an SDL renderer but another separate window is used with a user handled OpenGL context. Attached is a small program that reproduces this bug, at least in some Linux machines where an OpenGL renderer is provided by default. Expected Output: -"First window" should be blue. -"Second window" should be green. Gotten Output: - "First window" black. - "Second window" blue. What happened: The renderer created for the "first window" ends rendering into the "second window" OpenGL context. Bug location: SDL_render_gl.c - line 286 on hg: static SDL_GLContext SDL_CurrentContext = NULL; When making SDL_GL_MakeCurrent from the user perspective, that variable or the GL renderer is not notified about the OpenGL context change. Solution proposal: - Move the current GL context cache into another place global.
Sam Lantinga 175b343e 2014-06-15T17:37:35 Fixed bug 2568 - NO_SDL_GLEXT should prevent OS glext.h as well J?rgen Tjern? If you #define NO_SDL_GLEXT before including SDL_opengl.h, it still includes the platform-provided glext.h. The comments indicate that this define is intended to be used when you provide your own glext.h (quote from SDL_opengl.h: "Define this if you have your own version of glext.h and want to disable the version included in SDL_opengl.h.") This is a problem because glext.h depends on the contents of gl.h, and it's practical to let SDL_opengl.h pick the right #include for gl.h for our platform.
Sam Lantinga 2a082c07 2014-06-15T17:26:30 Fixed bug 2580 - sndio backend improvements Brad Smith Attached is patch from the OpenBSD ports tree to add 24-bit support to the sndio backend and to make use of the sio_open() option SIO_DEVANY.
Sam Lantinga 6146fe85 2014-06-15T17:18:05 Fixed 2584 - Memory leak in Cocoa_GetDisplayName Diego The Xcode Instruments Leak tool reports a leak from IODisplayCreateInfoDictionary in Cocoa_GetDisplayName. This happened after upgrading to Xcode 5.
Sam Lantinga 54771080 2014-06-15T13:05:30 Add controller mapping for Bluetooth DualShock 4 controllers on Linux Frank Praznik Add a gamepad mapping entry for Bluetooth DualShock 4 controllers on Linux. The button mapping is the same as the USB controller, but the GUID is different.
Sam Lantinga b9d1f9ed 2014-06-15T13:01:10 Fixed Android error on static lib build, if relative NDK_MODULE_PATH used Stefan P?schel if the variable NDK_MODULE_PATH is set to a relative path (like "../"), compiling of a static SDL lib fails with an error similar to this: make: *** No rule to make target `..//android_libs/SDL/..//android_libs/SDL/src/main/android/SDL_android_main.c', needed by `obj/local/armeabi/objs/SDL2_static/__//android_libs/SDL/src/main/android/SDL_android_main.o'. Stop. Regarding the shared lib, this is already prevented by a "subst" command in the /Android.mk, which removes all occurences of "$(LOCAL_PATH)/". The attached patch does the same with the additional "SDL_android_main.c", which is included for build the static SDL lib.
Sam Lantinga ab4f1aaa 2014-06-15T10:42:28 Fixed Visual Studio 2008 projects Added missing files to SDL2 project Added missing Visual Studio 2008 tests to the solution Added output paths which match the 2010+ projects Added SDL project references instead of old style project dependencies Removed post-build copy step and added data files to projects
Ryan C. Gordon 39bad809 2014-06-15T11:59:16 Mac: Fixed crash when returning from a fullscreen Space on shutdown.
Ryan C. Gordon 70cebc7d 2014-06-15T01:19:01 Add coreaudio to the configure script's summary output.
Ryan C. Gordon 446d19c4 2014-06-14T23:31:23 Removed SDL_SYS_JoystickNeedsPolling(). It was simpler to just have the polling (actually: hotplug detection) functions return immediately if it's not an appropriate time to poll. Note that previously, if any joystick/controller was opened, we would poll every time anyhow, skipping this function.
Ryan C. Gordon 9e5504f8 2014-06-13T14:52:26 Mac: Run the CFRunLoop in joystick mode during SDL_SYS_JoystickNeedsPolling(). This fixes hotplugging failing to detect devices.
Alfred Reynolds 8c2c744a 2014-06-13T10:50:24 - fixed crash if you removed a device twice, the deviceRef is invalid if removed from the removed device callback (added in http://hg.libsdl.org/SDL/rev/d4e4d0fcda03 ).
Ryan C. Gordon 8719a765 2014-06-10T19:39:33 Regenerated SDL_audiotypecvt.c with updated perl script.
Ryan C. Gordon 91b7fb00 2014-06-10T19:37:59 Fix audio resampling in some cases. Fixes Bugzilla #2389.
Philipp Wiesemann 78d40e09 2014-06-09T17:37:59 Fixed nesting of HTML elements in documentation. The code element may only contain inline but the pre element is block.
Philipp Wiesemann f4df5425 2014-06-09T17:28:08 Fixed typos in documentation.
Philipp Wiesemann ea93820e 2014-06-09T17:25:03 Fixed format string faults in audio tests. They were found by the recent code annotations.
Gabriel Jacobo 7467e30b 2014-06-08T18:50:40 Forgot a piece of README-nacl.txt
Gabriel Jacobo efa2d058 2014-06-08T18:18:13 Fixes audio for Native Client, and other fixes... - SDL_NaClMount, SDL_NaClUmount - Default mounting of https at / in SDL's main function - More documentation in README-nacl.txt
Sam Lantinga 5ae12b46 2014-06-08T12:05:17 The NaCL mount/unmount functions need to be in SDL_system.h and specific to NaCL
Sam Lantinga be74705f 2014-06-08T12:00:29 Visual Studio 2013 Express Edition can load the standard solution, so we don't need special Express Edition solutions.
Sam Lantinga d639d031 2014-06-08T11:59:36 Ignore Visual Studio test data files
Philipp Wiesemann ef3887ec 2014-06-08T13:14:20 Changed two Java nested classes into static nested classes. Both do not need an implicitly created reference to enclosing class.
Philipp Wiesemann d2220917 2014-06-08T13:03:45 Fixed typo in log message.
Philipp Wiesemann 2b95c4c4 2014-06-08T13:01:04 Fixed doxygen comment in header.
Philipp Wiesemann 0ad1dc18 2014-06-08T12:51:02 Fixed typo in source comment.
Sam Lantinga 85cae478 2014-06-07T21:58:18 Updated projects for Visual Studio 2010, 2012 and 2013 * Test programs use project references instead of hard-coding SDL library dependencies * Test data files are copied only when needed. * Copying SDL2.dll is no longer necessary * Fixed /SAFESEH warning * Fixed attempted rebuild of SDL every time a test program is run
Sam Lantinga 47e0aa0e 2014-06-07T20:43:12 Fixed building on command line Mac OS X
Sam Lantinga cde32ccc 2014-06-07T18:20:25 Fixed compile warnings
Sam Lantinga 6101e4b2 2014-06-07T18:20:01 Added SDL_sqrtf(), SDL_tan(), SDL_tanf()
Sam Lantinga 40538446 2014-06-07T17:31:50 Fixed crash with SDL_SetError(NULL)
Sam Lantinga 0ddd252f 2014-06-07T17:25:56 Fixed initializing test event queue
Sam Lantinga 5907cfaa 2014-06-07T17:25:35 Fixed another loopwave crash with no command line arguments
Sam Lantinga a93474a2 2014-06-07T17:09:32 Fixed loopwave crash with no command line arguments
Sam Lantinga 9fb2cc10 2014-06-07T11:36:08 dront78 implemented YUV texture support for OpenGL ES 2.0
Gabriel Jacobo 93aabd32 2014-06-06T18:33:17 Adds missing Makefile for NACL test and a couple of smaller fixes
Gabriel Jacobo 1e352d79 2014-06-06T15:45:59 Chrome's Native Client backend implementation
Brandon Schaefer 04a0836b 2014-06-05T15:37:33 Turns out visualstudio does not like PRIu64, soo lets just cast it to llu.
Brandon Schaefer 1f716769 2014-06-05T15:29:23 Fix warnings, only major one being an SDL_SetError not providing enough arguments.
Sam Lantinga 6671aa2a 2014-06-05T09:49:45 Code analysis annotations found a legitimate bug!
Sam Lantinga d0146cfc 2014-06-05T09:27:06 Added missing headers that should be installed.
Ryan C. Gordon 4f7329a1 2014-06-05T11:04:07 Don't link directly against OpenGL.framework on Mac OS X. We dlopen() it as appropriate already.
Ryan C. Gordon c294130f 2014-06-05T10:28:08 Added SDL_opengl_glext.h to the list of headers to install.
Ryan C. Gordon 3dedcf29 2014-06-05T01:55:52 Corrected package list for Wayland/Mir support (was missing libxkbcommon-dev).
Sam Lantinga 1188c174 2014-06-04T16:35:07 Fixed Mac OS X build
Brandon Schaefer d829af78 2014-06-04T12:55:18 Assume all motion events are mouse events unless tool_type states otherwise.
Sam Lantinga 4fd03b95 2014-06-04T10:57:52 Setting the window size changes the fullscreen display mode, unless a window display mode has been set. Testing: * Ran testsprite2 --fullscreen, used Ctrl+ and Ctrl- to change window sizes, verified that the display mode changed as well.
Sam Lantinga c15e26d7 2014-06-04T10:57:40 Fixed crash and lost pixel data when recovering from a lost device situation (e.g. alt-tab from fullscreen)
Sam Lantinga 947a0b8b 2014-06-04T10:57:12 Ryan C. Gordon <icculus@icculus.org> 2014-05-24 01:23 -0400 Generated dynapi stuff for the new WinRT entry points. http://hg.libsdl.org/SDL/rev/d54306e2b8a7
Sam Lantinga da6d9a9f 2014-06-04T10:56:56 Added annotations to help code analysis tools CR: Bruce Dawson
Sam Lantinga 529bcf62 2014-06-04T10:56:43 Fixed bug 2526, but regressed delivering dead key presses
Sam Lantinga 4750fe73 2014-06-04T10:56:37 When the window fullscreen mode changes, update the display resolution
Sam Lantinga 707fd9f0 2014-06-04T10:56:30 Fixed bug where changing the window border would change the window size on Windows.
Sam Lantinga 1e00c03f 2014-06-04T10:56:17 Fixed Mac OS X build
Sam Lantinga 45ed5ee4 2014-06-04T10:55:26 Added an API function to warp the mouse cursor in global screen space: SDL_WarpMouseGlobal()
Sam Lantinga 3e3b34ad 2014-06-04T10:52:34 Added a hint to disable windows message processing in SDL_PumpEvents() SDL_SetHint( SDL_HINT_WINDOWS_ENABLE_MESSAGELOOP, "0" );
Sam Lantinga 0d1f0fed 2014-06-04T10:50:32 Added a hint to disable window frame and title bar interaction when the cursor is hidden
J?rgen P. Tjern? d3418446 2014-06-04T10:33:23 SDL_opengl: Fix Mac build for SDK 10.9 too.
J?rgen P. Tjern? d623c0b4 2014-06-04T09:59:10 SDL_opengl: Fix Mac build with new glext.h
Sam Lantinga 65133ebc 2014-06-04T09:39:08 Wait for the fullscreen transition to complete before allowing the application to continue. This fixes Alt-Enter in the Steam streaming client, which sets the window size and position immediately after switching out of fullscreen mode.
Sam Lantinga 16360b19 2014-06-04T01:56:14 Fixed escape cancelling fullscreen mode now that the SDL window is the first res ponder.
J?rgen P. Tjern? a2085da2 2014-06-04T01:35:36 SDL_opengles2: Update to latest Khronos headers. This updates to the latest Khronos headers, which gives the latest headers for MSVC. The following files were retrieved on 2014-06-04: http://www.khronos.org/registry/gles/api/GLES2/gl2.h http://www.khronos.org/registry/gles/api/GLES2/gl2ext.h http://www.khronos.org/registry/gles/api/GLES2/gl2platform.h http://www.khronos.org/registry/egl/api/KHR/khrplatform.h And they were modified to not include each other themselves.
J?rgen P. Tjern? 0887f518 2014-06-04T01:32:52 SDL_opengl: Update to glext.h from Khronos dated 2014-05-21. This updates to the latest glext.h from Khorons that includes the OpenGL 4.4 specification. It was retrieved from http://www.opengl.org/registry/api/GL/glext.h at 2014-06-04.