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 e97fc562 2015-04-13T20:52:38 Android: Fixed lint warning about order of elements in AndroidManifest.xml.
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.
Ryan C. Gordon c6538cb9 2015-04-12T20:28:28 Merged.
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.
Ryan C. Gordon 1a73b4eb 2015-04-11T05:58:37 Some Raspberry Pi build fixes (including Raspberry Pi 2 support). Fixes Bugzilla #2879.
Rohit Nirmal cf6b9752 2015-04-10T22:31:52 Ignore some more test binaries.
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 049ef9a3 2015-04-08T22:24:33 Android: Fixed calling a getter method twice.
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 1339ce71 2015-04-08T01:42:47 Make SDL_stdinc.h work when compiling with -Wundef (thanks, Ben!). Fixes Bugzilla #2664.
Ryan C. Gordon 88e85f4d 2015-04-08T01:40:01 Patched to compile on C89 compilers.
Ryan C. Gordon 8da7e8ad 2015-04-08T01:37:17 Log Android hardware at startup (thanks, rettichschnidi!). Fixes Bugzilla #2653.
Ryan C. Gordon 6a126a48 2015-04-07T23:40:01 Do the "fix" for asserts with MSVC's /W4 warnings only on MSVC. Naturally, this way generates a warning on GCC and Clang instead. :)
Ryan C. Gordon 9a686aaa 2015-04-07T22:49:56 Wayland: changed a few "SetError(); return -1;" to "return SetError()".
Ryan C. Gordon e7ba78a3 2015-04-07T21:52:22 CMake: Dependency variable for FUSIONSOUND_SHARED was wrong (thanks, Kaleb!). Fixes Bugzilla #2055.
Ryan C. Gordon 5b6e064a 2015-04-07T20:01:43 CMake: fix CHECK_OBJC_SOURCE_COMPILES to work with GCC (thanks, Ivan!). Apparently -ObjC works with Clang, but -x objective-c works with both. Fixes Bugzilla #2392.
Philipp Wiesemann 684f9e96 2015-04-07T23:00:56 Fixed typo in gesture README.
Ryan C. Gordon 3e9c2e75 2015-04-07T00:39:16 Another attempt to make MSVC's /W4 warning level cooperate with SDL_assert. Fixes Bugzilla #2733.
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
Joseba Garc?a Etxebarria 41961e4f 2015-04-02T00:55:45 Cast the result of calling getButtonState to an Integer
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.
Joseba Garc?a Etxebarria 73990628 2015-03-27T18:09:51 Renamed SDLGenericMotionListener back to SDLGenericMotionListener_API12
Philipp Wiesemann e7a659eb 2015-03-25T22:48:57 Removed not needed call to SDL_free().
Philipp Wiesemann 37672303 2015-03-25T22:47:22 Android: Removed outdated comment from source.
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 9470f4a2 2015-03-24T03:21:57 Better fixes for CMake subsystem enabling (thanks, Sebastian!). Fixes Bugzilla #2875.
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 ac2bb3f2 2015-03-23T20:07:24 configure script: fix recursive mutex test on Linux systems (thanks, Ozkan!).
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.
Philipp Wiesemann 8a58e12f 2015-03-23T20:21:45 Updated test program for Emscripten.
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. :)
Philipp Wiesemann 49f33b41 2015-03-21T22:42:53 Added missing SDL_DOLLARRECORD event type documentation in header.
Philipp Wiesemann 716ef0d5 2015-03-21T08:01:43 Fixed confusing audio and touch events because of shared enumeration values.
Ryan C. Gordon eb49f8ca 2015-03-21T00:09:22 Patched to compile on OpenGL ES-based platforms.
Ryan C. Gordon 161e5d15 2015-03-20T23:29:09 Whoops, lost a newline in here.
Ryan C. Gordon 3c76d2ff 2015-03-20T21:57:15 Several corrections to the CMake project files (thanks, Ozkan!). Fixes Bugzilla #2732.
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 70191a93 2015-03-20T11:51:03 CMake: Don't search for the OpenGL library on Mac OS X. It's always there.
Ryan C. Gordon 182a7768 2015-03-20T11:11:44 Audio hotplug fixes for winmm and XAudio2 backends.
Ryan C. Gordon c1091f32 2015-03-20T10:35:42 CMake project files no longer force you to link against Wayland or Mir libs.