Ozkan Sezer
09a1cda048
SDL_bmp.c: restore most of the original formatting.
2019-09-02 12:35:00 +03:00
Ryan C. Gordon
25172f6f82
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
94bcd876de
d3d11: Fixed VB state, avoiding unnecessary recreation (Thanks, Alex!).
...
Fixes Bugzilla #4779 .
2019-09-01 22:41:44 -04:00
Sylvain Becker
f03b5ef30e
LoadBMP: fix some warnings
2019-08-31 22:58:11 +02:00
Sylvain Becker
5982324061
LoadBMP: use code from SDL_image which allows loading compressed BMP files
2019-08-31 22:52:15 +02:00
Sam Lantinga
827c02da57
Allow mouse messages from Wacom pens, e.g. right click pen buttons, etc.
2019-08-30 15:32:15 -07:00
Sam Lantinga
7f1ee3f05e
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
4ee2aba0d1
use 'U' suffix on constants instead of (unsigned int) cast.
2019-08-30 11:35:20 +03:00
Sylvain Becker
e7b47e02ba
Android: minor warning
2019-08-30 09:00:06 +02:00
Sylvain Becker
017af0ae91
Android: fix corresponding warnings
2019-08-30 08:55:20 +02:00
Sylvain Becker
ed4d83da73
Android: add more warning flags
2019-08-30 08:43:13 +02:00
Sylvain Becker
a8b00e9d91
Fixed bug 3918 - HIDAPI, CMake support for android project
2019-08-27 11:38:43 +02:00
Sam Lantinga
7b13b4a196
Fixed Windows relative mouse coordinates when capturing the mouse over RDP
2019-08-26 17:43:01 -07:00
Alex Szpakowski
9b8c97f15c
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
ace57ce610
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
c4d911d170
RPI_FreeCursor: set global_cursor to NULL to prevent double-free (bug 4769)
2019-08-26 18:41:40 +03:00
Sylvain Becker
0d0b51f2db
Fixed bug 1663 - SDL_EventState(SDL_DOLLARGESTURE,SDL_IGNORE) etc. has no effect
2019-08-24 20:40:37 +02:00
Ozkan Sezer
0df1fc13af
fix permissions
2019-08-23 03:01:10 +03:00
Sam Lantinga
b9acc8cecd
Fixed whitespace
2019-08-22 16:12:16 -07:00
Sam Lantinga
f9c83e5ce5
[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
524454bad0
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
504d68fa8f
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
0fb1a8c50a
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
39b5b2d72c
Fix audio conversion U16_to_F32_SSE2 (bug 4186)
2019-08-19 21:23:47 +02:00
Sylvain Becker
8749ba20aa
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
940eeb03d0
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
0f14f2a87a
metal renderer: optimize SDL_RenderFillRect slightly.
2019-08-18 10:38:32 -03:00
Alex Szpakowski
ccfe75a655
render: fix colors not being set properly after the previous change
2019-08-18 09:35:11 -03:00
Alex Szpakowski
0b01e3cf35
render: avoid a couple redundant memcmp calls in all drawing functions. Improves performance slightly.
2019-08-17 22:26:33 -03:00
Alex Szpakowski
fd9b2e7257
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
bee3a60005
metal renderer: more closely match buffer data alignment requirements from the metal specification.
2019-08-17 01:09:30 -03:00
Alex Szpakowski
e03c7d97d3
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
8a2ccace8a
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
9d1d406b74
metal: Update compiled shaders based on compilation script changes
2019-08-16 22:13:30 -03:00
Alex Szpakowski
c4524f16b7
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
1cac684966
iOS: Fix issues with Split VIew on iPad (bugs #4586 , #4705 ).
2019-08-15 19:38:12 -03:00
Sylvain Becker
7a36cc410d
Android: remove tabs/indent
2019-08-15 20:38:25 +02:00
Sylvain Becker
d6637510b2
Android: SDL_image/SDL_mixer/SDL_ttf partially compiling with CMake (bug 3918)
2019-08-13 16:00:08 +02:00
Sam Lantinga
dcf21d5da2
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
79da113ed7
Fixed bug 3918 - CMake support for android project
2019-08-11 15:23:37 +02:00
Ozkan Sezer
102850e1bd
fix permissions
2019-08-08 23:35:02 +03:00
Sam Lantinga
9a01434255
[ 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
ebf1ac3122
hidapi: Explicitly include locale.h, for setlocale
2019-08-06 23:08:01 -04:00
Sam Lantinga
5a7015c93c
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
97b93a86d6
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
01075dc1f2
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
99abe1244f
Port libusb hid.c to SDL, add to MinGW configure
2019-08-04 00:01:38 -04:00
Alex Szpakowski
0ba98cae5f
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
84cb66b8a8
macOS: fix a typo in touch handling code.
2019-08-04 23:30:55 -03:00
Alex Szpakowski
5934a368bb
Fix touch-related compile errors on Linux.
2019-08-04 16:56:40 -03:00