Ozkan Sezer
8ca869b0cb
SDL_bmp.c: restore most of the original formatting.
2019-09-02 12:35:00 +03:00
Ryan C. Gordon
123d506254
direct3d: Be more aggressive about resetting state when textures go away.
...
Fixes Bugzilla #4768 .
2019-09-02 00:11:58 -04:00
Ryan C. Gordon
56752d2226
d3d11: Fixed VB state, avoiding unnecessary recreation (Thanks, Alex!).
...
Fixes Bugzilla #4779 .
2019-09-01 22:41:44 -04:00
Sylvain Becker
f1e7d71a20
LoadBMP: fix some warnings
2019-08-31 22:58:11 +02:00
Sylvain Becker
35244c4817
LoadBMP: use code from SDL_image which allows loading compressed BMP files
2019-08-31 22:52:15 +02:00
Sam Lantinga
7960b838eb
Allow mouse messages from Wacom pens, e.g. right click pen buttons, etc.
2019-08-30 15:32:15 -07:00
Sam Lantinga
ba94236e2a
Fixed bug where the Steam overlay would generate an event and stop input processing for the frame.
2019-08-30 08:03:19 -07:00
Ozkan Sezer
eedd651cef
use 'U' suffix on constants instead of (unsigned int) cast.
2019-08-30 11:35:20 +03:00
Sylvain Becker
32913d0f64
Android: minor warning
2019-08-30 09:00:06 +02:00
Sylvain Becker
7f1bffc694
Android: fix corresponding warnings
2019-08-30 08:55:20 +02:00
Sylvain Becker
0a4221377f
Android: add more warning flags
2019-08-30 08:43:13 +02:00
Sylvain Becker
27d9892ec9
Fixed bug 3918 - HIDAPI, CMake support for android project
2019-08-27 11:38:43 +02:00
Sam Lantinga
314b2ee487
Fixed Windows relative mouse coordinates when capturing the mouse over RDP
2019-08-26 17:43:01 -07:00
Alex Szpakowski
333739eb02
gl/gles/gles2 render: fix SDL_RenderClear being affected by the clip rect in some situations.
2019-08-26 18:49:04 -03:00
Sam Lantinga
6ac4927d80
Fixed bug 4475 - add Gasia Co. Ltd PS(R) Gamepad support
...
Frank
This gamepad/controller is sold in Germany https://www.amazon.de/gp/product/B01AQTPSA6/ref=ppx_yo_dt_b_asin_title_o03__o00_s00 but isn't supported right now. It identifies as "Gasia Co. Ltd PS(R) Gamepad"
2019-08-26 10:08:25 -07:00
Ozkan Sezer
4f7b74e536
RPI_FreeCursor: set global_cursor to NULL to prevent double-free (bug 4769)
2019-08-26 18:41:40 +03:00
Sylvain Becker
78881f3e1d
Fixed bug 1663 - SDL_EventState(SDL_DOLLARGESTURE,SDL_IGNORE) etc. has no effect
2019-08-24 20:40:37 +02:00
Ozkan Sezer
f08d0890a8
fix permissions
2019-08-23 03:01:10 +03:00
Sam Lantinga
349441374c
Fixed whitespace
2019-08-22 16:12:16 -07:00
Sam Lantinga
d4f7a93d4a
[SDL][IOS] Audio fix - applies stream to sound data when resampling or reformatting is required.
2019-08-22 16:09:42 -07:00
Sam Lantinga
b91554ff4e
Prevent the SPEEDLINK COMPETITION PRO joystick from switching into Android controller mode when enumerated over HID on Windows 10.
2019-08-22 15:58:00 -07:00
Alex Szpakowski
2d357d905d
macOS: Use the proper type (NSSize instead of CGSize) for the bounds of metal views.
2019-08-22 19:23:52 -03:00
Sylvain Becker
e0d3a2fa1a
Fixed bug 4172 - remove logging Gesture error "NumPoints = 0"
...
- not necessary when app isn't recording gesture.
- happen when gesture path has less than 2 different points
2019-08-22 10:15:33 +02:00
Sylvain Becker
5610d67656
Fix audio conversion U16_to_F32_SSE2 (bug 4186)
2019-08-19 21:23:47 +02:00
Sylvain Becker
7db238231d
Fixed bug 4186 - ARM/NEON audio converters cause strange clicking noises
...
reverse the order when storing ouput buffer
2019-08-19 20:35:02 +02:00
Sylvain Becker
5507e8c0d3
Fixed bug 4186 - ARM/NEON audio converters cause strange clicking noises
...
reverse the order when storing ouput buffer
2019-08-19 16:57:15 +02:00
Alex Szpakowski
225bac198c
metal renderer: optimize SDL_RenderFillRect slightly.
2019-08-18 10:38:32 -03:00
Alex Szpakowski
ffd955faf1
render: fix colors not being set properly after the previous change
2019-08-18 09:35:11 -03:00
Alex Szpakowski
fcbcdb56fc
render: avoid a couple redundant memcmp calls in all drawing functions. Improves performance slightly.
2019-08-17 22:26:33 -03:00
Alex Szpakowski
a7fc7f2f01
metal renderer: use vertex attributes instead of indexing into a buffer with the vertex id in the shader. Allows for more flexibility with vertex setup in the future.
...
Also optimize vertex buffer binding slightly.
2019-08-17 16:53:08 -03:00
Alex Szpakowski
4806fd2326
metal renderer: more closely match buffer data alignment requirements from the metal specification.
2019-08-17 01:09:30 -03:00
Alex Szpakowski
58f5d312f3
render: simplify vertex and uniform data allocation. Improves performance of various SDL_Render functions (bug #4764 ).
2019-08-17 00:43:44 -03:00
Alex Szpakowski
5e0bbbca54
metal renderer: use the device address space instead of the constant address space for colors.
...
It doesn't negatively impact GPU performance in my tests, and it removes the need for 256 byte memory alignment of color data on macOS.
2019-08-17 00:37:22 -03:00
Alex Szpakowski
c7bb69b363
metal: Update compiled shaders based on compilation script changes
2019-08-16 22:13:30 -03:00
Alex Szpakowski
b99bcb45b5
metal: Update shader compilation script with fixes for newer xcode versions and for running on older platforms
2019-08-16 22:11:50 -03:00
Alex Szpakowski
a88c8e5e3d
iOS: Fix issues with Split VIew on iPad (bugs #4586 , #4705 ).
2019-08-15 19:38:12 -03:00
Sylvain Becker
09fc115c5a
Android: remove tabs/indent
2019-08-15 20:38:25 +02:00
Sylvain Becker
e8c4c75188
Android: SDL_image/SDL_mixer/SDL_ttf partially compiling with CMake (bug 3918)
2019-08-13 16:00:08 +02:00
Sam Lantinga
a800c90014
Disable HIDAPI by default, as it breaks on Linux when trying to use libusb with non-root permissions on some distributions
2019-08-12 13:35:36 -07:00
Sylvain Becker
8713ac0e33
Fixed bug 3918 - CMake support for android project
2019-08-11 15:23:37 +02:00
Ozkan Sezer
97773ac8f8
fix permissions
2019-08-08 23:35:02 +03:00
Sam Lantinga
7405009192
[ SDL ] Fix compile error building for Windows/ARM64 on Visual Studio 2017 Win10 SDK 10.0.18362.0 which requires ar,74intr.h/arm64_neon.h header instead of armintr.h/arm_neon.h for intrinsics.
...
@saml
2019-08-08 13:26:05 -07:00
Ethan Lee
057397ee6b
hidapi: Explicitly include locale.h, for setlocale
2019-08-06 23:08:01 -04:00
Sam Lantinga
01b5799b4b
Fixed bug 4747 - [Patch] SDL_ShowMessageBox ignores BUTTON_RETURNKEY_DEFAULT flag
...
Caleb Cornett
SDL_ShowMessageBox on UIKit doesn't do anything special with buttons that are marked with the flag SDL_MESSAGEBOX_BUTTON_RETURNKEY_DEFAULT. According to Apple's documentation on UIAlertController, a button can respond to a return key if it's marked as the preferredAction of the controller. SDL doesn't set a preferredAction currently, so I've attached a patch to fix that.
2019-08-05 23:52:16 -07:00
Sam Lantinga
1d3440189d
Fixed bug 4354 - CMake builds do not correctly enable IME on Linux
...
Callum McGing
While the CMake build checks for ibus and does enable the ibus backend with set(HAVE_IBUS_IBUS_H TRUE), this does not define SDL_USE_IME, thus CMake built SDL2 (as in Arch Linux) cannot use IME at all.
The attached patch fixes this behaviour when building against ibus. IME support will still fail when only fcitx is available on the build system.
2019-08-05 23:46:09 -07:00
Sam Lantinga
64e87c75de
Fixed bug 4689 - SDL fails to detect compositor shutdown on Wayland -- program keeps running
...
M Stoeckl
To reproduce:
1. Run any SDL-based program with a Wayland compositor, orphaning it so that it doesn't have an immediate parent process. (For example, from a terminal, running `supertux2 & disown`.) The program should use the wayland backend, i.e. by setting environment variable SDL_VIDEODRIVER=wayland.
2. Kill the compositor process.
Results:
- The SDL program will keep running.
Expected results:
- The SDL program should close. (What close should mean here, I'm not sure - is injecting an SDL_Quit the appropriate action when a video driver disconnects?)
Build data:
2019-06-22, hg tip (12901:5cbf6472a916), Linux, can reproduce with sway, weston, and other Wayland oompositors.
2019-08-05 23:38:48 -07:00
Ethan Lee
1036552fce
Port libusb hid.c to SDL, add to MinGW configure
2019-08-04 00:01:38 -04:00
Alex Szpakowski
74249a6d05
Add public APIs for creating a Metal view attached to an SDL window. Add SDL_metal.h.
2019-08-05 12:35:32 -03:00
Alex Szpakowski
15b648952f
macOS: fix a typo in touch handling code.
2019-08-04 23:30:55 -03:00
Alex Szpakowski
d8e1144031
Fix touch-related compile errors on Linux.
2019-08-04 16:56:40 -03:00