Sam Lantinga
7ad64357ee
Updated Android build environment for examples
2021-11-15 17:04:50 -08:00
Sam Lantinga
66058bbbd5
Fixed exception accessing Bluetooth devices on Android 12
...
Since accessing Bluetooth prompts the user for permission on both Android and iOS, and we only need it for Steam Controller support, we'll leave it off by default. You can enable it by setting the hint SDL_HINT_JOYSTICK_HIDAPI_STEAM to "1" before calling SDL_Init()
Fixes https://github.com/libsdl-org/SDL/issues/4952
2021-11-15 16:52:56 -08:00
Sam Lantinga
be5b4d980d
Added nativeGetHintBoolean for Java code
2021-11-15 16:52:54 -08:00
Sam Lantinga
9ec2b35147
Fixed the GLES2 shader count to be in sync with the enum
2021-11-15 13:45:53 -08:00
Sam Lantinga
2f591fb0a0
Added android:exported="true" to the example Android manifest
...
This is needed for targeting Android 12 (API 31)
2021-11-15 12:50:02 -08:00
Sylvain
b649314d62
Add comment to audio clipping (see bug #4104 )
2021-11-15 13:43:40 +01:00
Sylvain
d4df5d33c5
GLES2: prevent batching if blend mode changes (see bug #4964 )
2021-11-15 09:43:44 +01:00
Sylvain
92f2fdfc84
GLES2: batch non joined lines (see #4964 )
2021-11-15 09:36:18 +01:00
Sylvain
17f156fae5
Fixed bug #4964 - opengles2 & batching = conjoined lines
...
put back the initial switch case because groups of joined lines cannot be batched.
2021-11-15 09:08:09 +01:00
Sylvain
d8888e468e
Fixed bug #4964 - opengles2 & batching = conjoined lines
2021-11-15 08:37:49 +01:00
Ryan C. Gordon
193ab28fe4
Renamed README-macosx.md to README-macos.md
2021-11-14 23:35:50 -05:00
Ryan C. Gordon
4edf2df5ce
Unix2dos'd README-macosx.md.
2021-11-14 23:34:46 -05:00
Sam Lantinga
bbac1e9add
Don't include pthreads code when threads are disabled
...
Fixes https://github.com/libsdl-org/SDL/issues/4950
2021-11-14 20:34:41 -08:00
Anders Jenbo
93556e67e0
Update AndroidManifest.xml
2021-11-14 20:19:54 -08:00
Anders Jenbo
b9c619017d
[Android] Limit WRITE_EXTERNAL_STORAGE to SDK 22-
...
Direct access to the external storage is no longer allowed as of SDK 30. But on older version of Android you will still need WRITE_EXTERNAL_STORAGE in order to request the Download Manager to download files to your external file folder.
2021-11-14 20:19:54 -08:00
Sam Lantinga
cc094f4d7c
Fixed building with the macOS 10.8 SDK
2021-11-14 20:15:48 -08:00
Cameron Gutman
d7d67af441
mouse: Fix Y value in motion events when confinement is active
2021-11-14 17:52:41 -06:00
Sam Lantinga
fb6aba1938
Updated SDL_egl.h with the latest Khronos headers
...
https://www.khronos.org/registry/EGL/api/
2021-11-14 15:35:49 -08:00
Zack Middleton
1cd3e83756
cocoa: Fix abort on touch event types without a subtype
...
macOS 10.6 has some touch NSEvents which do not have a subtype
(Begin/EndGesture, Magnify, Rotate, Swipe) and cause an uncaught
exception which triggers SIGABRT and the program exits.
As it is, none of the macOS 10.6 touch events are detected as a
trackpad (including Gesture due to using different subtypes).
2021-11-14 15:21:51 -08:00
Ozkan Sezer
781caec2b2
SDL_waylandevents.c (keyboard_handle_keymap): silenced -Wwrite-strings .
2021-11-15 00:55:24 +03:00
Ozkan Sezer
5c067906ba
wasapi: AvSetMmThreadCharacteristicsW takes an LPCWSTR param, not LPWSTR
2021-11-15 00:55:04 +03:00
Ozkan Sezer
3eb9bfac7a
win32 rawinput & wgi joystick: avoid -Werror=declaration-after-statement
2021-11-14 22:22:50 +03:00
Ryan C. Gordon
73a41f4058
Removed outdated build-scripts/iosbuild.sh
...
Fixes #1532 .
2021-11-14 14:17:36 -05:00
Sam Lantinga
c55ab9631f
Added a hint for alternate OpenGL NV12 data format
2021-11-13 22:21:57 -08:00
Ozkan Sezer
8a6e48d46d
constified SDL_RegisterApp()
2021-11-14 04:40:50 +03:00
Ozkan Sezer
7dfd22ac5e
fix XGetDefault signature - its first and second params are _Xconst
2021-11-14 02:32:00 +03:00
Ozkan Sezer
c7aa04d03e
SDL_test_harness.c: avoid -Wwrite-strings
2021-11-14 02:31:20 +03:00
Ozkan Sezer
be7b663c2c
audio/winmm/SDL_winmm.c (SetMMerror): constify.
2021-11-14 02:30:56 +03:00
Ozkan Sezer
e4aa608a5c
change (char*) casts to (const char*) in WIN_UTF8 macros
2021-11-14 02:30:34 +03:00
Ozkan Sezer
780f6cbd38
build libSDL2_test too with Makefile.minimal
2021-11-14 01:10:32 +03:00
Cameron Gutman
eb98ff4740
testmessage: Fix overread of stack variable
2021-11-13 13:05:02 -06:00
Ozkan Sezer
fbe810070b
more fixes to standalone makefiles.
2021-11-13 21:56:20 +03:00
Ozkan Sezer
62b41f61d4
fix build of testmouse.c
2021-11-13 21:29:50 +03:00
Ozkan Sezer
2d1706069a
fixes to Makefile.minimal
2021-11-13 21:29:32 +03:00
Ozkan Sezer
d1e6bd93d8
fix library name in Makefile.pandora
2021-11-13 21:29:10 +03:00
Cameron Gutman
674f361dec
wayland: Fix memory leaks in clipboard code
2021-11-13 11:44:36 -06:00
Ozkan Sezer
3e2f8668be
added some more missing sources to standalone makefiles.
2021-11-13 20:35:24 +03:00
Cameron Gutman
c8061ed2d1
alsa: Fix possible uninitialized string
2021-11-13 10:33:37 -06:00
Ozkan Sezer
a2c27d39cf
SDL_hidapi_switch.c (ConstructSubcommand): lose use of '&' on rumbleData
...
SwitchCommonOutputPacket_t->rumbleData is an array.
2021-11-13 17:56:28 +03:00
Ozkan Sezer
6ad0fb8462
SDL_hidapi_ps4.c, SDL_hidapi_ps5.c: use SDL_zeroa()
2021-11-13 17:55:10 +03:00
Sylvain
70c8d20a46
Revert previous commit a50ca98e2b
(see bug #4625 )
2021-11-13 15:04:19 +01:00
Sylvain
a50ca98e2b
Fixed bug #4625 - SDL_RenderSetLogicalSize issues
...
viewport becomes -2147483648x-2147483648 when logical_w/h is greater than window size.
division should be done with floats
2021-11-13 14:48:36 +01:00
Ozkan Sezer
a948ff8494
SDL_hidapijoystick.c: worked around a bogus 'unreachable code' warning.
2021-11-13 11:50:02 +03:00
Cameron Gutman
eb3f1462b8
x11: Fix memory leak in X11_CreatePixmapCursor()
2021-11-12 18:26:26 -06:00
Cameron Gutman
f124259e59
testautomation: fix use-after-free when restoring hint value
2021-11-12 17:25:24 -06:00
Cameron Gutman
704edf6323
audio: Fix crash calling SDL_OpenAudio() after SDL_AudioInit() fails
...
The SDL_WasInit() checks don't work when using SDL_AudioInit() directly,
which is exactly what audio_initOpenCloseQuitAudio() in testautomation
does.
2021-11-12 17:07:22 -06:00
Cameron Gutman
78013aeef9
alsa: Fix use-after-free when reinitializing
2021-11-12 16:57:24 -06:00
Ozkan Sezer
e688a95ba4
updated os2 makefile for tests
2021-11-12 23:55:40 +03:00
Ozkan Sezer
2cf9374270
minor update to docs/README.md
2021-11-12 20:55:02 +03:00
Ozkan Sezer
3dc7813ae4
more whitespace tidy-ups in SDL_os2messagebox.c
2021-11-12 20:47:02 +03:00