src


Log

Author Commit Date CI Message
Eric Wing 7d5147ba 2015-04-17T21:25:19 resync'd overscan patch with SDL mainline.
Philipp Wiesemann 5a578a07 2015-04-16T22:04:35 Fixed return value of SDL_SaveBMP_RW() depending on set errors after NULL input. If SDL_SaveBMP_RW() was called with NULL passed as SDL_RWops argument, different values were returned depending on SDL_GetError(). If no error was set before the call (or SDL_ClearError() was called) then 0 was returned. This is wrong because nothing was saved. If an error was set before the call then -1 was returned. This was fixed by directly returning -1 for NULL input instead of deciding based on SDL_GetError(). No new error is set because this would otherwise override a maybe more useful error set in SDL_RWFromFile() which is used by SDL_SaveBMP().
Philipp Wiesemann db878a43 2015-04-16T22:02:03 Linux: Removed not needed platform info from two entries of controller database. Not needed because entries of this file are selected by conditional compilation.
Philipp Wiesemann 3e1d3629 2015-04-15T21:29:55 Fixed typo in internal joystick documentation comments.
Philipp Wiesemann e6b7b38c 2015-04-15T21:27:10 Emscripten: Simplified implementation of joystick update function. The function was implemented using four loops but only needed two.
Philipp Wiesemann 86fb92a7 2015-04-15T21:25:15 Emscripten: Fixed memory leak if SDL_GetPrefPath() failed.
Philipp Wiesemann 0fbd3372 2015-04-13T20:52:18 WinRT: Fixed format string for error message.
Ryan C. Gordon 3a027059 2015-04-12T21:02:21 Patched to compile on C89 compilers.
Ryan C. Gordon c539b3f9 2015-04-12T20:59:48 Make X11 and Wayland ProcessHitTest() code less verbose.
Ryan C. Gordon d10201be 2015-04-12T20:40:06 Implemented SetWindowHitTest() for Wayland (thanks, x414e54!). Fixes Bugzilla #2941.
Alex Szpakowski a27fad1e 2015-04-12T01:50:28 Fixed orientation issues in the iOS extended launch screen.
Philipp Wiesemann 26b4898a 2015-04-11T20:43:11 Windows: Fixed format string for error message.
Philipp Wiesemann 56c82bc8 2015-04-11T20:41:49 Mac: Fixed typo in two error messages.
Alex Szpakowski fe6c797c 2015-04-10T23:30:31 Fixed an iOS view orientation issue when SDL_GL_CreateContext or SDL_CreateRenderer is called.
Ryan C. Gordon 6ae7a206 2015-04-10T21:40:50 Placate static analysis with an assertion.
Ryan C. Gordon 2afa4aed 2015-04-10T21:15:51 Fixed memory leak in failure case that static analysis found.
Philipp Wiesemann 7bd72219 2015-04-10T23:45:13 PSP: Removed empty statement.
Philipp Wiesemann ce2d5f70 2015-04-10T23:44:55 Wayland: Removed empty statement.
Ryan C. Gordon 562414c7 2015-04-09T22:28:37 Merged Alex Szpakowski's iOS-improvement branch to default. Fixes Bugzilla #2798. Fixes Bugzilla #2212. Fixes Bugzilla #2826. Fixes Bugzilla #2661. Fixes Bugzilla #1885. Fixes Bugzilla #1578. Fixes Bugzilla #2751. (whew!) Notable changes, from Alex's notes: - The SDL_WINDOW_ALLOW_HIGHDPI flag is now needed (along with SDL_GL_GetDrawableSize or SDL_GetRendererOutputSize) to use Retina / high DPI resolutions, bringing SDL?s Retina-related behavior on iOS in line with Mac OS X. Window dimensions and display modes are now in the ?points? (non-high DPI) coordinate system rather than pixels, whereas SDL_GL_GetDrawableSize is in pixels. - Reworked the custom extended launch screen code: - It now hides after the first SDL_PumpEvents call rather than SDL_CreateWindow, and it fades out in a similar manner to the system launch screen behavior. - It now mirrors the system launch screen behavior when deciding which image to display: it falls back to using the Launch Images dictionary in Info.plist if the iOS 8+ launch screen nib isn?t available, and if the Launch Images dictionary doesn?t exist it uses the old standard launch image names. - The extended launch screen can now be disabled via the SDL_IPHONE_LAUNCHSCREEN define in SDL_config_iphoneos.h. - Added support for SDL_HINT_ACCELEROMETER_AS_JOYSTICK. - Added access to a window view's renderbuffer and framebuffer to syswm. - Added OpenGL ES debug labels for the Renderbuffer and Framebuffer Objects created with SDL_GL_CreateContext. - Added support for sRGB OpenGL ES contexts on iOS 7+. - Updated OpenGL ES contexts to support native-resolution rendering (when SDL_WINDOW_ALLOW_HIGHDPI is enabled) on the iPhone 6 Plus, i.e. 1080x1920 rather than 1242x2208. - Updated SDL_GL_CreateContext, SDL_GL_SwapWindow, SDL_GL_MakeCurrent, and SDL_GL_DeleteContext to be more robust. - Updated SDL windows to display a UIView at all times, even when an OpenGL context is not active. This allows rotation, touch events, and other windowing-related events to work properly without an active OpenGL context. It also makes it easier to use SDL_GetWindowWMInfo after creating a SDL window. - Updated the iOS-specific Objective-C code to use cleaner and more modern language features and APIs, including ARC instead of manual reference counting. - Updated SDL_HINT_ORIENTATIONS to allow disabling custom orientations if the hint is set with no valid orientation names. - Fixed several rotation and orientation bugs with windows and display modes, especially in iOS 8+. - Fixed SDL_SetWindowFullscreen failing to update the status bar visibility on iOS 7+. - Fixed the orientation of the offset applied to the window?s view when the onscreen keyboard is shown in iOS 8+. - Fixed SDL_IsScreenKeyboardShown (patch by Phil Hassey.) - Fixed several major memory leaks caused by missing autorelease pool blocks in the iOS-specific Objective-C code. - Removed several dead code paths. - The iOS 7 SDK (Xcode 5) or newer is now required to build SDL for iOS.
Alex Szpakowski c4035654 2015-04-09T19:28:00 Added framebuffer and colorbuffer members to the uikit portion of the SDL_SysWMinfo struct, removed SDL_iOSGetViewRenderbuffer and SDL_iOSGetViewFramebuffer.
Philipp Wiesemann 67549d33 2015-04-09T22:14:05 Backed out changeset 064a1998a957
Philipp Wiesemann f8796348 2015-04-09T21:13:41 Wayland: Fixed not freeing memory if initialization failed.
Philipp Wiesemann dc33fb94 2015-04-09T21:13:20 Wayland: Fixed accessing not fully initialized subsystem if errors happened. The VideoInit() implementation returned 0 on errors instead of -1.
Philipp Wiesemann 8a573844 2015-04-09T21:11:43 Wayland: Fixed accessing not fully initialized window if no memory available. The CreateWindow() implementation returned 0 on no more memory instead of -1.
Philipp Wiesemann 458b94da 2015-04-08T22:18:10 Android: Fixed creating mouse coordinates which are not needed if hint is set.
Philipp Wiesemann b473d30f 2015-04-08T22:15:25 Android: Fixed not resetting mouse pointer state if hint was changed at runtime.
Alex Szpakowski fcd0f06a 2015-04-08T15:59:29 Renamed SDL_iPhoneGetViewFramebuffer/Renderbuffer to SDL_iOSGetViewFramebuffer/Renderbuffer. Added #defines for SDL_iOSSetAnimationCallback and SDL_iOSSetEventPump, which point to SDL_iPhoneSetAnimationCallback and SDL_iPhoneSetEventPump.
Alex Szpakowski 1152a759 2015-04-08T15:44:07 Generated dynapi prototypes for the new iPhone functions.
Alex Szpakowski 26c28114 2015-04-08T15:35:07 Merged default into iOS-improvements
Ryan C. Gordon a210dbcb 2015-04-08T02:42:29 Removed unused variable.
Ryan C. Gordon 53287ad5 2015-04-08T02:31:54 X11: Removed code to set "icon" title, since it was never used. (Leftover from SDL 1.2, which let you specify this?)
Ryan C. Gordon 78026f54 2015-04-08T02:24:17 Patched to compile on Windows.
Ryan C. Gordon e0ad1021 2015-04-08T02:22:28 Wayland: Patched to compile.
Ryan C. Gordon 785618af 2015-04-08T02:14:59 DirectInput: ignore everything but joysticks and gamepads (thanks, Justin!). Fixes Bugzilla #2460.
Ryan C. Gordon 6e53bc9b 2015-04-08T02:00:14 SDL_SetWindowTitle() should never set a NULL pointer for the title string. Various backends reacted differently (or not at all) in the presence of a NULL pointer. This simplifies things. Fixes Bugzilla #2902.
Ryan C. Gordon 88e85f4d 2015-04-08T01:40:01 Patched to compile on C89 compilers.
Ryan C. Gordon 9a686aaa 2015-04-07T22:49:56 Wayland: changed a few "SetError(); return -1;" to "return SetError()".
Ryan C. Gordon 80115574 2015-04-06T18:26:13 Refuse to make a window that's too large. Some systems (x11) freak out at this. Fixes Bugzilla #2255.
Alex Szpakowski df98b11c 2015-04-06T15:26:37 Merged default into iOS-improvements
Ryan C. Gordon f3590aba 2015-04-06T00:11:58 X11: Always specify "True" if setting GLX_FRAMEBUFFER_SRGB_CAPABLE_ARB. Fixes Bugzilla #2897.
Ryan C. Gordon 83aeb31d 2015-04-06T00:10:54 This function can be static.
Ryan C. Gordon 2f3f3287 2015-04-05T18:59:52 Make loading/saving dollar gesture templates endian clean (thanks, Martin!). Fixes Bugzilla #2674.
Ryan C. Gordon 05a9206a 2015-04-05T18:44:24 Add some SDL_SetError() calls to the dollar gesture code (thanks, Martin!). Fixes Bugzilla #2673.
Ryan C. Gordon 0713c1e5 2015-04-05T15:52:37 Patched to compile on Android when audio subsystem is disabled (thanks, Jonas!) Fixes Bugzilla #2797.
Sam Lantinga 3e4a8ce1 2015-04-01T19:18:56 Fixed detecting the NVIDIA controller which shows up as both a mouse and a game controller
Sam Lantinga c5d9d164 2015-04-01T18:22:42 Added a game controller entry for the NVIDIA Controller
Edward Rudd c7ec9c1d 2015-04-01T16:11:37 handle the case where the ibus address can't be found. (prevents nasty crash)
Ryan C. Gordon 64237d7f 2015-04-01T14:45:09 Patched to compile on Android (I hope).
Ryan C. Gordon f9041771 2015-04-01T12:14:56 Android: more separate-mouse-and-touch work. This avoids a hint lookup for each mouse event we get by setting a static Java variable from native code during our hint watcher callback. Also attempts to do the right thing with mouse buttons if you happen to be on an API14 (Ice Cream Sandwich, Android 4.0) or later device. We still target API12 (Honeycomb MR1, Android 3.1) for SDL 2.0.4 though. This isn't tested, so I'm pushing to see what the Android buildbot says. Stand back, I'm a professional!
Sam Lantinga 236deab4 2015-03-30T11:31:53 Fixed relative mouse motion moving farther and farther off screen.
Emmanuel Gil Peyrot b620df3e 2015-03-28T19:43:46 Wayland: Specify the output we want to put our window on. Fixes Bugzilla #2803.
Ryan C. Gordon a0e878aa 2015-03-28T00:48:03 Minor input grab clarifications. Clarify that grabbing the mouse only works with one window at a time; this was always true at the system level, though SDL could previously get confused by multiple simultaneous grabs, so now we explicitly break any existing grab before starting a new one and document it as such. Also track the window that is currently grabbed, and provide an API to query for that window. This makes it easy to automate mouse ungrabbing at breakpoints with gdb7's scripting, since the scripts can now know which window to ungrab. In 2.1, we should probably change this API to SDL_GrabInput(win) and SDL_UngrabInput(void), or something.
Philipp Wiesemann e7a659eb 2015-03-25T22:48:57 Removed not needed call to SDL_free().
Ryan C. Gordon 03f5185e 2015-03-25T11:18:54 Make the Dynamic API master switch more clear.
Ryan C. Gordon 1270247c 2015-03-25T10:59:10 Add a hint watch callback for SDL_HINT_ANDROID_SEPARATE_MOUSE_AND_TOUCH.
Ryan C. Gordon 83a44680 2015-03-25T10:48:59 Removed unnecessary SDL_log.h include.
Ryan C. Gordon 87ef19c4 2015-03-25T10:19:10 Keep track of maximum number of events in-flight in the SDL queue at once.
Joseba Garc?a Etxebarria ca7b18e4 2015-03-24T21:02:28 * More Android patch work
Joseba Garc?a Etxebarria 387fa5dc 2015-03-24T20:45:29 * Improve mouse support in Android. These changes require Android API v12 to compile
Ryan C. Gordon 3f9f0027 2015-03-24T14:40:31 Patched to compile on C89 compilers.
Ryan C. Gordon 672ccb4f 2015-03-24T14:36:36 Make the signal handler hint more generic.
Ryan C. Gordon a91a5604 2015-03-24T14:29:25 Added a hint to prevent SDL from installing signal handlers. Fixes Bugzilla #2431.
Ryan C. Gordon 162ef5ea 2015-03-24T13:52:01 Cleanups in the joystick code. Removed some redundant state and other confusions. Fixes Bugzilla #2738.
Ryan C. Gordon 4a071b31 2015-03-24T03:24:57 Mac: patched to compile with haptic subsystem disabled (thanks, Rodrigo!). Fixes Bugzilla #2717.
Ryan C. Gordon d9f37853 2015-03-24T03:12:35 Make SDL error string formatting deal with nasty corner cases. We continued looping while maxlen > 0, but maxlen was unsigned, so an overflow would make it a large number instead of negative. Fixed. Some snprintf() implementations might return a negative value if there isn't enough space, and we now check for that. Don't overrun the SDL error message buffer, if snprintf() returned the number of chars it wanted to write instead of the number it did. snprintf is a portability mess, we should just never use the C runtime for it. Fixes Bugzilla #2049.
Ryan C. Gordon 54f4725a 2015-03-24T02:48:16 Ran hardcoded game controller database through sort_controllers.py.
Ryan C. Gordon a300a735 2015-03-24T02:47:25 Added Logitect RumblePad 2 controller mapping for Linux (thanks, Nicholas!). Fixes Bugzilla #2091.
Ryan C. Gordon 878c2324 2015-03-24T02:13:25 winmm: Let audio callback buffer size be less than 1/4 second (thanks, Jon!). Maybe this was here for Win9x? There's no reason to insert this much latency by default. Fixes Bugzilla #2835.
Ryan C. Gordon c76130c9 2015-03-23T19:54:33 X11: Reenabled setlocale() and fork() for message boxes. Fixes Bugzilla #1658.
Ryan C. Gordon 331a434f 2015-03-23T19:47:08 Windows: Report window HDC in SDL_SysWMinfo. Fixes Bugzilla #2668.
Philipp Wiesemann 528e48b9 2015-03-23T20:24:04 Android: Removed not needed include statement.
Ryan C. Gordon b42c2597 2015-03-22T01:25:12 Cocoa: Handle more cases of lost focus when Key window closes (thanks, Alex!). Sort of fixes Bugzilla #1825 a little more. It's an ongoing effort. :)
Ryan C. Gordon eb49f8ca 2015-03-21T00:09:22 Patched to compile on OpenGL ES-based platforms.
Alex Baines a4458a70 2015-03-20T19:47:03 Fix DBus error message if IBus couldn't be initialized.
Ryan C. Gordon 34415c45 2015-03-20T12:23:53 Windows: support for OpenGL extension WGL_ARB_context_flush_control.
Ryan C. Gordon 182a7768 2015-03-20T11:11:44 Audio hotplug fixes for winmm and XAudio2 backends.
Ryan C. Gordon 6c072917 2015-03-19T23:54:35 Patched to compile on gcc2.
Ryan C. Gordon 06e85acd 2015-03-19T23:45:34 Removed unused variable.
Ryan C. Gordon b24ff446 2015-03-19T23:44:47 Make static analysis happy.
Ryan C. Gordon 277e07e7 2015-03-19T23:39:53 Fixed a compiler warning on Visual Studio.
Ryan C. Gordon 1877f574 2015-03-19T23:35:43 Patched to compile on Windows.
Ryan C. Gordon 537b68b9 2015-03-19T22:11:20 Zero out the audio hotplug event structure, so the "padded" fields are sane. Just in case we ever need those bits in the future.
Ryan C. Gordon cafd030b 2015-03-19T22:08:12 PulseAudio: Hotplug support!
Ryan C. Gordon 11cffe1d 2015-03-19T15:43:00 SDL_RemoveAudioDevice() should specify capture vs output. This lets us reuse values between the two categories without conflicting, etc.
Ryan C. Gordon 1e78ef21 2015-03-19T13:34:17 Removed the broken audio streaming code, other small cleanups.
Ryan C. Gordon 5cbb32ef 2015-03-19T13:27:10 Disconnected/broken/lost audio devices now continue to fire their callback. The data produced by the callback is just thrown away and the audio thread delays as if it's waiting for the hardware to drain. This lets apps that rely on their audio callback firing regularly continue to make progress to function as properly as possible in the face of disaster. Apps that want to know that the device is really gone and deal with that scenario can use the new hotplug functionality.
Ryan C. Gordon 75973f81 2015-03-19T13:15:28 Don't assert if an audio backend reports the same device disconnected twice.
Ryan C. Gordon 7c4b88f2 2015-03-18T10:29:04 PulseAudio: Improved multidevice support. Added capture device enumeration, report human-readable device name, other cleanups.
Ryan C. Gordon 338bf5d2 2015-03-18T10:09:39 Changed some SDL_memset() calls to SDL_zero().
Ryan C. Gordon 97ff10c6 2015-03-18T10:09:23 Tweaked a couple comments, added some FIXMEs.
Ryan C. Gordon 43674503 2015-03-18T10:05:36 Patched to compile on C89 compilers.
Ryan C. Gordon 9a83151e 2015-03-18T09:59:22 PulseAudio: Added multiple device support, other cleanups. Thanks to Dominik Frizel for most of the effort on this! Fixes Bugzilla #2730.
Ryan C. Gordon f9cfd9fa 2015-03-18T02:01:17 Bunch of reworking to how we manage audio devices. Device enumeration now happens at startup and then is managed exclusively through hotplugging instead of full redetection. The device name list now has a unique "handle" associated with each item and SDL will pass this to the backend so they don't have to figure out how a human readable name maps to real hardware for a second time. Other cleanups, fixes, improvements, plus all the audio backends updated to the new interface...largely untested at this point, though.
Ryan C. Gordon 73feb8c0 2015-03-18T00:56:33 Fixed a compiler warning.
Emmanuel Gil Peyrot 89be609a 2015-03-18T01:14:45 Wayland: Properly discover displays and their modes. Fixes Bugzilla #2913.
David Ludwig 522fd829 2015-03-17T19:45:47 WinRT: made OpenGL window-init work with latest round of ANGLE/WinRT updates Various constants in ANGLE/WinRT, both in MSOpenTech's ms-master branch, and in Google's branch, were changed again. This change makes SDL/WinRT work with them. To note, the ms-master branch (of ANGLE) was updated via this merge: https://github.com/MSOpenTech/angle/commit/bbd2eb0a9c453a941f2c7abacf616d5a66b6be92#diff-d1377fbe747de154e1bfcf7221d3de67
David Ludwig b12ea759 2015-03-17T10:25:21 WinRT: another ANGLE/OpenGL-initialization, error messaging tweak
David Ludwig 1083ae22 2015-03-17T10:22:36 WinRT: ANGLE/OpenGLES-initialization, error message improvements
Ryan C. Gordon 0e02ce08 2015-03-16T02:11:39 Initial work on audio device hotplug support. This fills in the core pieces and fully implements it for Mac OS X. Most other platforms, at the moment, will report a disconnected device if it fails to write audio, but don't notice if the system's device list changed at all.
Ryan C. Gordon 809b7be2 2015-03-13T12:20:17 Cleaning out a silly coding style I used to use. Changed all the "return (x);" lines to "return x;"