Ryan C. Gordon <icculus@icculus.org> [Sun, 12 Apr 2015 20:28:28 -0400] rev 9553
Merged.
Alex Szpakowski <slime73@gmail.com> [Sun, 12 Apr 2015 01:50:28 -0300] rev 9552
Fixed orientation issues in the iOS extended launch screen.
Alex Szpakowski <slime73@gmail.com> [Fri, 10 Apr 2015 23:30:31 -0300] rev 9551
Fixed an iOS view orientation issue when SDL_GL_CreateContext or SDL_CreateRenderer is called.
Rohit Nirmal <rohitnirmal9@gmail.com> [Fri, 10 Apr 2015 22:31:52 -0500] rev 9550
Ignore some more test binaries.
Philipp Wiesemann <philipp.wiesemann@arcor.de> [Sat, 11 Apr 2015 20:43:11 +0200] rev 9549
Windows: Fixed format string for error message.
Philipp Wiesemann <philipp.wiesemann@arcor.de> [Sat, 11 Apr 2015 20:41:49 +0200] rev 9548
Mac: Fixed typo in two error messages.
Ryan C. Gordon <icculus@icculus.org> [Sat, 11 Apr 2015 05:58:37 +0000] rev 9547
Some Raspberry Pi build fixes (including Raspberry Pi 2 support).
Fixes Bugzilla #2879.
Ryan C. Gordon <icculus@icculus.org> [Fri, 10 Apr 2015 21:40:50 -0400] rev 9546
Placate static analysis with an assertion.
Ryan C. Gordon <icculus@icculus.org> [Fri, 10 Apr 2015 21:15:51 -0400] rev 9545
Fixed memory leak in failure case that static analysis found.
Philipp Wiesemann <philipp.wiesemann@arcor.de> [Fri, 10 Apr 2015 23:45:13 +0200] rev 9544
PSP: Removed empty statement.
Philipp Wiesemann <philipp.wiesemann@arcor.de> [Fri, 10 Apr 2015 23:44:55 +0200] rev 9543
Wayland: Removed empty statement.
Ryan C. Gordon <icculus@icculus.org> [Thu, 09 Apr 2015 22:33:39 -0400] rev 9542
Closing the iOS-improvements branch.
Ryan C. Gordon <icculus@icculus.org> [Thu, 09 Apr 2015 22:28:37 -0400] rev 9541
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 <slime73@gmail.com> [Thu, 09 Apr 2015 19:28:00 -0300] rev 9540
Added framebuffer and colorbuffer members to the uikit portion of the SDL_SysWMinfo struct, removed SDL_iOSGetViewRenderbuffer and SDL_iOSGetViewFramebuffer.
Alex Szpakowski <slime73@gmail.com> [Wed, 08 Apr 2015 15:59:29 -0300] rev 9539
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 <slime73@gmail.com> [Wed, 08 Apr 2015 15:44:07 -0300] rev 9538
Generated dynapi prototypes for the new iPhone functions.
Alex Szpakowski <slime73@gmail.com> [Wed, 08 Apr 2015 15:35:07 -0300] rev 9537
Merged default into iOS-improvements
Alex Szpakowski <slime73@gmail.com> [Mon, 06 Apr 2015 15:26:37 -0300] rev 9536
Merged default into iOS-improvements
Alex Szpakowski <slime73@gmail.com> [Sat, 24 Jan 2015 23:58:07 -0400] rev 9535
Merged default into iOS-improvements
Alex Szpakowski <slime73@gmail.com> [Sat, 24 Jan 2015 23:53:41 -0400] rev 9534
Fixed the extended launch screen causing minor visual issues when rotating the screen in some circumstances.
Alex Szpakowski <slime73@gmail.com> [Thu, 15 Jan 2015 01:15:24 -0400] rev 9533
Merged default into iOS-improvements
Alex Szpakowski <slime73@gmail.com> [Thu, 15 Jan 2015 01:06:14 -0400] rev 9532
Several improvements to the iOS backend:
- Added new custom launch screen code. It uses the launch screen nib when available on iOS 8+, the launch images dictionary if the launch screen nib isn't available, and the old standard image names if the launch image dictionary isn't in the plist.
The launch screen is now hidden during the first call to SDL_PumpEvents rather than SDL_CreateWindow so apps can have the launch screen still visible if they do time-consuming loading after creating their window. It also fades out in roughly the same way as the system launch screen behavior.
It can be disabled by setting the SDL_IPHONE_LAUNCHSCREEN define in SDL_config_iphoneos.h to 0.
- A blank UIView is now created and displayed when the window is first created. The old behavior was to defer creating any view until SDL_GL_CreateContext, which prevented rotation, touch events, and other windowing-related things from working until then. This also makes it easier to use SDL_GetWindowWMInfo after creating a window.
- Moved the keyboard and animation callback code from SDL's UIView subclasses to its UIViewController subclass, which lets them work properly in all cases when a SDL window is valid, even before SDL_GL_CreateContext is called and after SDL_GL_DeleteContext is called.
- SDL_GL_CreateContext, SDL_GL_SwapWindow, SDL_GL_MakeCurrent, and SDL_GL_DeleteContext are more robust.
- Fixed some edge cases where SDL windows weren't rotating properly or their reported sizes were out of sync with their actual sizes.
- Removed all calls to [UIApplication setStatusBarOrientation:]. It doesn't seem to work as expected in all cases in recent iOS versions.
- Some code style cleanup.
Alex Szpakowski <slime73@gmail.com> [Tue, 02 Dec 2014 02:52:45 -0400] rev 9531
Merged default into iOS-improvements
Alex Szpakowski <slime73@gmail.com> [Mon, 01 Dec 2014 07:31:22 -0400] rev 9530
Fixed SDL_GetRendererOutputSize on iOS when high-DPI mode is enabled on a Retina device.
Alex Szpakowski <slime73@gmail.com> [Thu, 27 Nov 2014 20:25:54 -0400] rev 9529
Minor Objective-C code tweaks.
Alex Szpakowski <slime73@gmail.com> [Sun, 23 Nov 2014 23:29:24 -0400] rev 9528
Removed an ugly hack to make windows rotate properly on iOS 8+.
Recent commits apparently resolved the issue that made the hack necessary.
Alex Szpakowski <slime73@gmail.com> [Sun, 23 Nov 2014 23:23:47 -0400] rev 9527
Cleaned up the iOS text input code, fixed the orientation of the view offset when the onscreen keyboard is shown in iOS 8+, and changed UIKit_SetTextInputRect to update the view offset if the keyboard is currently visible.
Alex Szpakowski <slime73@gmail.com> [Fri, 21 Nov 2014 10:03:02 -0400] rev 9526
The iOS OpenGL ES context's color Renderbuffer Object is no longer completely destroyed and recreated in layoutSubviews. Its storage is now only reallocated when the actual size of the layer changes. The framebuffer object and renderbuffer object binding states are no longer clobbered by the storage reallocation code in layoutSubviews.
Alex Szpakowski <slime73@gmail.com> [Fri, 21 Nov 2014 03:29:57 -0400] rev 9525
Added debug labels for the OpenGL ES objects created with SDL_GL_CreateContext on iOS.
More misc. code cleanup.
Alex Szpakowski <slime73@gmail.com> [Thu, 20 Nov 2014 18:45:04 -0400] rev 9524
Minor objective-c code style improvements
Alex Szpakowski <slime73@gmail.com> [Thu, 20 Nov 2014 17:19:26 -0400] rev 9523
Fixed mismatching orientations for the window width and height on iOS when the window is created or the app is brought to the foreground, when SDL_HINT_ORIENTATIONS or SDL_WINDOW_FULLSCREEN is used.
Alex Szpakowski <slime73@gmail.com> [Sat, 15 Nov 2014 22:59:16 -0400] rev 9522
Merged default into iOS-improvements
Alex Szpakowski <slime73@gmail.com> [Tue, 28 Oct 2014 18:36:29 -0300] rev 9521
Merged default into iOS-improvements
Alex Szpakowski <slime73@gmail.com> [Tue, 28 Oct 2014 01:34:40 -0300] rev 9520
Switched to the core versions of OpenGL ES framebuffer object and renderbuffer functions.
Both the extension (OES) and the core versions work, but the core versions are more correct for GLES2+ and they're less verbose.
Alex Szpakowski <slime73@gmail.com> [Fri, 24 Oct 2014 04:06:45 -0300] rev 9519
Removed the codepath that gets compiled if IPHONE_TOUCH_EFFICIENT_DANGEROUS is not defined.
The "dangerous" codepath relies on the fact that UITouch objects are persistent for the entire touch sequence, which is always guaranteed by Apple.
Alex Szpakowski <slime73@gmail.com> [Fri, 24 Oct 2014 03:56:34 -0300] rev 9518
Completely removed custom splash screen code. iOS 8 introduced yet another official way to do launch images (via a Storyboard), and the custom splash screen code was broken on newer devices and caused bugs for all devices anyway.
Alex Szpakowski <slime73@gmail.com> [Sun, 14 Sep 2014 17:04:54 -0300] rev 9517
Enabling highdpi mode on an iPhone 6 Plus should now create a 1080x1920 OpenGL view, rather than 1242x2208 (414x736@3x.)
Alex Szpakowski <slime73@gmail.com> [Wed, 10 Sep 2014 18:10:37 -0300] rev 9516
Merged default into iOS-improvements
Alex Szpakowski <slime73@gmail.com> [Wed, 20 Aug 2014 17:20:22 -0300] rev 9515
Merged default into iOS-improvements
Alex Szpakowski <slime73@gmail.com> [Fri, 08 Aug 2014 15:14:09 -0300] rev 9514
Added iOS-specific functions to get the window view's current OpenGL Renderbuffer and Framebuffer objects, so they can be more easily rebound when necessary.
Alex Szpakowski <slime73@gmail.com> [Thu, 07 Aug 2014 00:44:16 -0300] rev 9513
Fixed opengl context share groups on iOS.
Alex Szpakowski <slime73@gmail.com> [Wed, 06 Aug 2014 13:50:50 -0300] rev 9512
Merged default into iOS-improvements
Alex Szpakowski <slime73@gmail.com> [Wed, 06 Aug 2014 03:32:59 -0300] rev 9511
Merged default into iOS-improvements
Alex Szpakowski <slime73@gmail.com> [Wed, 06 Aug 2014 03:24:16 -0300] rev 9510
Updated the iOS backend code to use Objective-C's automatic reference counting (ARC).
Alex Szpakowski <slime73@gmail.com> [Wed, 06 Aug 2014 00:45:11 -0300] rev 9509
Minor code update for less verbosity
Alex Szpakowski <slime73@gmail.com> [Mon, 04 Aug 2014 15:30:53 -0300] rev 9508
Merged branch default into iOS-improvements
Alex Szpakowski <slime73@gmail.com> [Thu, 31 Jul 2014 03:14:10 -0300] rev 9507
Merged 'default' into branch 'iOS-improvements'
Alex Szpakowski <slime73@gmail.com> [Tue, 29 Jul 2014 00:36:12 -0300] rev 9506
Added missing autorelease pool blocks in UIKit backend code. Fixes memory leak issues, especially in SDL_video.
Alex Szpakowski <slime73@gmail.com> [Tue, 29 Jul 2014 00:05:48 -0300] rev 9505
Added support for SDL_SetWindowBordered on iOS. Worked around a bug with rotating the device on iOS 8.
Alex Szpakowski <slime73@gmail.com> [Thu, 24 Jul 2014 22:35:25 -0300] rev 9504
Fixed SDL_SetWindowFullscreen on iOS causing the window's reported dimensions and supported orientations to go out of sync with what they should be, if the device orientation was different from the screen orientation when the function call was made.
Alex Szpakowski <slime73@gmail.com> [Wed, 23 Jul 2014 22:35:14 -0300] rev 9503
Integrated Phil Hassey's patch to fix SDL_IsScreenKeyboardShown on iOS (https://bugzilla.libsdl.org/show_bug.cgi?id=2660)
Alex Szpakowski <slime73@gmail.com> [Wed, 23 Jul 2014 21:55:42 -0300] rev 9502
Fixed SDL_SetWindowFullscreen on iOS for the last time, hopefully.
Fixed iOS version checking code.
Alex Szpakowski <slime73@gmail.com> [Wed, 23 Jul 2014 03:05:31 -0300] rev 9501
More cleanup of the iOS Objective-C code.
Alex Szpakowski <slime73@gmail.com> [Wed, 23 Jul 2014 01:33:59 -0300] rev 9500
90% of iOS users on the App Store run at least iOS 7, so it doesn't make sense to support building using an SDK that doesn't support iOS 7. The minimum supported runtime version is still iOS 5.1.
Alex Szpakowski <slime73@gmail.com> [Wed, 23 Jul 2014 01:28:24 -0300] rev 9499
Updated the iOS Objective-C code to use NSDictionary/NSArray/NSNumber literals and subscripting, for improved code clarity.
This requires at least Xcode 4.5 and the iOS 6 SDK to build, but it doesn't change the minimum supported runtime version (iOS 5.1). Less than 2% of iOS users are running iOS 5, so I hope developers aren't trying to build SDL using an SDK which doesn't support iOS 6/7...
Alex Szpakowski <slime73@gmail.com> [Tue, 22 Jul 2014 20:06:13 -0300] rev 9498
Cleaned up iOS OpenGL ES context creation code and added sRGB context support on iOS 7+
Alex Szpakowski <slime73@gmail.com> [Tue, 22 Jul 2014 16:48:35 -0300] rev 9497
Fixed SDL_SetWindowFullscreen on iOS to properly update the view's frame.
Alex Szpakowski <slime73@gmail.com> [Mon, 21 Jul 2014 02:46:53 -0300] rev 9496
The default implementation of [view layoutSubviews] actually does something in iOS 6+, so we should call [super layoutSubviews] when overriding it.
Alex Szpakowski <slime73@gmail.com> [Thu, 17 Jul 2014 22:55:59 -0300] rev 9495
Disabled the custom iOS splashscreen code - it interferes with the normal rotation and orientation behaviour of SDL windows.
Alex Szpakowski <slime73@gmail.com> [Thu, 17 Jul 2014 18:05:12 -0300] rev 9494
Properly send a window resize event in all cases when viewDidLayoutSubviews is triggered.
Alex Szpakowski <slime73@gmail.com> [Wed, 16 Jul 2014 21:06:15 -0300] rev 9493
Fixed SDL_HINT_ORIENTATIONS to properly allow disabling custom orientations if the hint is set with no valid orientations.
Alex Szpakowski <slime73@gmail.com> [Wed, 16 Jul 2014 20:05:00 -0300] rev 9492
The iOS 7 transparent status bar now uses white text rather than black.
Alex Szpakowski <slime73@gmail.com> [Wed, 16 Jul 2014 16:12:20 -0300] rev 9491
Fixed SDL_SetWindowFullscreen not properly updating the status bar visibility in iOS 7+
Alex Szpakowski <slime73@gmail.com> [Tue, 15 Jul 2014 02:04:08 -0300] rev 9490
Minor fix for if SDL_JoystickInit is called more than once without a matching SDL_JoystickQuit.
Alex Szpakowski <slime73@gmail.com> [Tue, 15 Jul 2014 02:01:43 -0300] rev 9489
iOS now respects SDL_HINT_ACCELEROMETER_AS_JOYSTICK.
Alex Szpakowski <slime73@gmail.com> [Mon, 14 Jul 2014 22:35:48 -0300] rev 9488
Changed the way retina resolutions are handled in iOS.
Previously, SDL would always expose display modes and window dimensions in terms of pixels, and would add an extra 'fake' display mode on retina screens which would contain the non-retina resolution. Calling SDL_CreateWindow with the dimensions of that fake display mode would not work.
Now, SDL only exposes display modes and window dimensions in terms of points rather than pixels. If the SDL_WINDOW_ALLOW_HIGHDPI flag is passed into SDL_CreateWindow, then any OpenGL contexts created from that window will be sized in pixels rather than points (retrievable with SDL_GL_GetDrawableSize.) Window dimensions and mouse coordinates are still in terms of points rather than pixels even with that flag.
This matches the behavior of SDL in OS X more closely, and lets users choose whether to make use of retina displays and lets them handle it properly.
Alex Szpakowski <slime73@gmail.com> [Mon, 14 Jul 2014 16:50:25 -0300] rev 9487
Misc. iOS code improvements.
- Use @autoreleasepool instead of NSAutoReleasePool.
- Code style fixups.
Philipp Wiesemann <philipp.wiesemann@arcor.de> [Thu, 09 Apr 2015 22:14:05 +0200] rev 9486
Backed out changeset 84407b33fe1e
Philipp Wiesemann <philipp.wiesemann@arcor.de> [Thu, 09 Apr 2015 21:13:41 +0200] rev 9485
Wayland: Fixed not freeing memory if initialization failed.
Philipp Wiesemann <philipp.wiesemann@arcor.de> [Thu, 09 Apr 2015 21:13:20 +0200] rev 9484
Wayland: Fixed accessing not fully initialized subsystem if errors happened.
The VideoInit() implementation returned 0 on errors instead of -1.
Philipp Wiesemann <philipp.wiesemann@arcor.de> [Thu, 09 Apr 2015 21:11:43 +0200] rev 9483
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 <philipp.wiesemann@arcor.de> [Wed, 08 Apr 2015 22:24:33 +0200] rev 9482
Android: Fixed calling a getter method twice.
Philipp Wiesemann <philipp.wiesemann@arcor.de> [Wed, 08 Apr 2015 22:18:10 +0200] rev 9481
Android: Fixed creating mouse coordinates which are not needed if hint is set.
Philipp Wiesemann <philipp.wiesemann@arcor.de> [Wed, 08 Apr 2015 22:15:25 +0200] rev 9480
Android: Fixed not resetting mouse pointer state if hint was changed at runtime.
Ryan C. Gordon <icculus@icculus.org> [Wed, 08 Apr 2015 02:42:29 -0400] rev 9479
Removed unused variable.
Ryan C. Gordon <icculus@icculus.org> [Wed, 08 Apr 2015 02:31:54 -0400] rev 9478
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 <icculus@icculus.org> [Wed, 08 Apr 2015 02:24:17 -0400] rev 9477
Patched to compile on Windows.
Ryan C. Gordon <icculus@icculus.org> [Wed, 08 Apr 2015 02:22:28 -0400] rev 9476
Wayland: Patched to compile.
Ryan C. Gordon <icculus@icculus.org> [Wed, 08 Apr 2015 02:14:59 -0400] rev 9475
DirectInput: ignore everything but joysticks and gamepads (thanks, Justin!).
Fixes Bugzilla #2460.
Ryan C. Gordon <icculus@icculus.org> [Wed, 08 Apr 2015 02:00:14 -0400] rev 9474
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 <icculus@icculus.org> [Wed, 08 Apr 2015 01:42:47 -0400] rev 9473
Make SDL_stdinc.h work when compiling with -Wundef (thanks, Ben!).
Fixes Bugzilla #2664.
Ryan C. Gordon <icculus@icculus.org> [Wed, 08 Apr 2015 01:40:01 -0400] rev 9472
Patched to compile on C89 compilers.
Ryan C. Gordon <icculus@icculus.org> [Wed, 08 Apr 2015 01:37:17 -0400] rev 9471
Log Android hardware at startup (thanks, rettichschnidi!).
Fixes Bugzilla #2653.
Ryan C. Gordon <icculus@icculus.org> [Tue, 07 Apr 2015 23:40:01 -0400] rev 9470
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 <icculus@icculus.org> [Tue, 07 Apr 2015 22:49:56 -0400] rev 9469
Wayland: changed a few "SetError(); return -1;" to "return SetError()".
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> [Sat, 28 Mar 2015 19:43:46 +0100] rev 9468
Wayland: Specify the output we want to put our window on.
Fixes Bugzilla #2803.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> [Wed, 18 Mar 2015 01:14:45 +0100] rev 9467
Wayland: Properly discover displays and their modes.
Fixes Bugzilla #2913.
Ryan C. Gordon <icculus@icculus.org> [Tue, 07 Apr 2015 21:52:22 -0400] rev 9466
CMake: Dependency variable for FUSIONSOUND_SHARED was wrong (thanks, Kaleb!).
Fixes Bugzilla #2055.
Ryan C. Gordon <icculus@icculus.org> [Tue, 07 Apr 2015 20:01:43 -0400] rev 9465
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 <philipp.wiesemann@arcor.de> [Tue, 07 Apr 2015 23:00:56 +0200] rev 9464
Fixed typo in gesture README.
Ryan C. Gordon <icculus@icculus.org> [Tue, 07 Apr 2015 00:39:16 -0400] rev 9463
Another attempt to make MSVC's /W4 warning level cooperate with SDL_assert.
Fixes Bugzilla #2733.
Alex Baines <alex@abaines.me.uk> [Fri, 20 Mar 2015 19:47:03 +0000] rev 9462
Fix DBus error message if IBus couldn't be initialized.
Ryan C. Gordon <icculus@icculus.org> [Mon, 06 Apr 2015 18:26:13 -0400] rev 9461
Refuse to make a window that's too large. Some systems (x11) freak out at this.
Fixes Bugzilla #2255.
Edward Rudd <urkle@outoforder.cc> [Tue, 10 Feb 2015 16:28:56 -0500] rev 9460
the last parameter of XChangeProperty is the number of elements.. and when the element format is 32.. the element is "long" so we have 5 long elements here.
Yes this seems confusing as on mac+linux Long is either 32 or 64bits depending on the architecture, but this is how the X11 protocol is defined. Thus 5 is the correct value for the nelts here. Not 5 or 10 depending on the architecture.
More info on the confusion https://bugs.freedesktop.org/show_bug.cgi?id=16802
Ryan C. Gordon <icculus@icculus.org> [Mon, 06 Apr 2015 00:11:58 -0400] rev 9459
X11: Always specify "True" if setting GLX_FRAMEBUFFER_SRGB_CAPABLE_ARB.
Fixes Bugzilla #2897.
Ryan C. Gordon <icculus@icculus.org> [Mon, 06 Apr 2015 00:10:54 -0400] rev 9458
This function can be static.
Ryan C. Gordon <icculus@icculus.org> [Sun, 05 Apr 2015 18:59:52 -0400] rev 9457
Make loading/saving dollar gesture templates endian clean (thanks, Martin!).
Fixes Bugzilla #2674.
Ryan C. Gordon <icculus@icculus.org> [Sun, 05 Apr 2015 18:44:24 -0400] rev 9456
Add some SDL_SetError() calls to the dollar gesture code (thanks, Martin!).
Fixes Bugzilla #2673.
Ryan C. Gordon <icculus@icculus.org> [Sun, 05 Apr 2015 15:52:37 -0400] rev 9455
Patched to compile on Android when audio subsystem is disabled (thanks, Jonas!)
Fixes Bugzilla #2797.
Sam Lantinga <slouken@libsdl.org> [Wed, 01 Apr 2015 19:18:56 -0700] rev 9454
Fixed detecting the NVIDIA controller which shows up as both a mouse and a game controller
Joseba García Etxebarria <joseba.gar@gmail.com> [Thu, 02 Apr 2015 00:55:45 +0200] rev 9453
Cast the result of calling getButtonState to an Integer
Sam Lantinga <slouken@libsdl.org> [Wed, 01 Apr 2015 18:22:42 -0700] rev 9452
Added a game controller entry for the NVIDIA Controller
Edward Rudd <urkle@outoforder.cc> [Wed, 01 Apr 2015 16:11:37 -0400] rev 9451
handle the case where the ibus address can't be found. (prevents nasty crash)
Ryan C. Gordon <icculus@icculus.org> [Wed, 01 Apr 2015 14:45:09 -0400] rev 9450
Patched to compile on Android (I hope).
Ryan C. Gordon <icculus@icculus.org> [Wed, 01 Apr 2015 12:14:56 -0400] rev 9449
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 <slouken@libsdl.org> [Mon, 30 Mar 2015 11:31:53 -0700] rev 9448
Fixed relative mouse motion moving farther and farther off screen.
Ryan C. Gordon <icculus@icculus.org> [Sat, 28 Mar 2015 00:48:03 -0400] rev 9447
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.
Patrice Mandin <patmandin@gmail.com> [Fri, 27 Mar 2015 23:32:20 +0100] rev 9446
atari: cdrom: Return an empty list of drives, instead of error if no driver present.
Joseba García Etxebarria <joseba.gar@gmail.com> [Fri, 27 Mar 2015 18:09:51 -0400] rev 9445
Renamed SDLGenericMotionListener back to SDLGenericMotionListener_API12
Philipp Wiesemann <philipp.wiesemann@arcor.de> [Wed, 25 Mar 2015 22:48:57 +0100] rev 9444
Removed not needed call to SDL_free().
Philipp Wiesemann <philipp.wiesemann@arcor.de> [Wed, 25 Mar 2015 22:47:22 +0100] rev 9443
Android: Removed outdated comment from source.
Ryan C. Gordon <icculus@icculus.org> [Wed, 25 Mar 2015 11:18:54 -0400] rev 9442
Make the Dynamic API master switch more clear.
Ryan C. Gordon <icculus@icculus.org> [Wed, 25 Mar 2015 10:59:10 -0400] rev 9441
Add a hint watch callback for SDL_HINT_ANDROID_SEPARATE_MOUSE_AND_TOUCH.
Ryan C. Gordon <icculus@icculus.org> [Wed, 25 Mar 2015 10:48:59 -0400] rev 9440
Removed unnecessary SDL_log.h include.
Joseba García Etxebarria <joseba.gar@gmail.com> [Tue, 24 Mar 2015 21:02:28 +0100] rev 9439
* More Android patch work
Joseba García Etxebarria <joseba.gar@gmail.com> [Tue, 24 Mar 2015 20:45:29 +0100] rev 9438
* Improve mouse support in Android. These changes require Android API v12 to compile
Ryan C. Gordon <icculus@icculus.org> [Wed, 25 Mar 2015 10:19:10 -0400] rev 9437
Keep track of maximum number of events in-flight in the SDL queue at once.
Ryan C. Gordon <icculus@icculus.org> [Tue, 24 Mar 2015 14:40:31 -0400] rev 9436
Patched to compile on C89 compilers.
Ryan C. Gordon <icculus@icculus.org> [Tue, 24 Mar 2015 14:36:36 -0400] rev 9435
Make the signal handler hint more generic.
Ryan C. Gordon <icculus@icculus.org> [Tue, 24 Mar 2015 14:29:25 -0400] rev 9434
Added a hint to prevent SDL from installing signal handlers.
Fixes Bugzilla #2431.