Ozkan Sezer
3c9ac4489e
cmake: enable_language(OBJC) to fix check_objc_source_compiles().
2022-02-05 18:45:50 +03:00
Ozkan Sezer
686a0f3456
cmake: include CheckOBJCSourceCompiles for cmake >= 3.16
...
c.f. bugs #5011 and #3912
2022-02-05 18:28:24 +03:00
pionere
6d5592a201
minor cleanup of SDL_CreateRenderer
2022-02-05 10:05:25 -05:00
Ozkan Sezer
e8c48981f9
pthread/SDL_systhread.c: always include errno.h
...
fixes build for several targets after commit 87b02d3
for bug #5283 .
2022-02-05 08:56:56 +03:00
Sam Lantinga
5c4fff7f63
Don't fail to get battery status if the upower refresh call fails
2022-02-04 14:02:44 -08:00
Ozkan Sezer
c8cee0b8ca
OS2_HasClipboardText: store the boolean result before closing clipboard.
...
just in case..
2022-02-04 23:28:56 +03:00
Ozkan Sezer
b5614d0c6e
cmake: fix UWP joystick.
...
from: https://github.com/microsoft/vcpkg/blob/master/ports/sdl2/0005-Fix-uwp-joystick.patch
2022-02-04 20:05:14 +03:00
Ozkan Sezer
c93e552068
minor update to winrt/SDL_sysurl.cpp
...
from: https://github.com/microsoft/vcpkg/blob/master/ports/sdl2/0006-Update-SDL_sysurl.cpp.patch
2022-02-04 20:03:50 +03:00
Ozkan Sezer
050a5e1a15
removed unused SDL_config_wiz.h
2022-02-04 20:02:20 +03:00
Ozkan Sezer
c459eceee1
removed unused Makefile.wiz
2022-02-04 19:50:50 +03:00
Ozkan Sezer
3b9e6c1cec
SDL_os2video.c: fixed HasClipboardText() semantics.
...
Empty string in clipboard is expected to give FALSE by SDL_HasClipboardText.
Noticed in a commit by josch1710 in bitwiseworks' os/2 fork.
2022-02-04 19:50:20 +03:00
Joshua Ashton
86b7a0642f
Add additional VID/PIDs for Anne Pro II
...
This thing changes its VID/PID on firmware revisions...
2022-02-04 08:45:19 -08:00
Sam Lantinga
dd69c28d6f
Added a mapping for the Xbox Series X controller, firmware version 5.11.3118.0, connected to Linux via Bluetooth
2022-02-03 18:01:34 -08:00
Temdog007
b59e75c259
Handle menu button press from controller
2022-02-02 21:21:44 -08:00
Ravbug
2005dd9595
UWP build ( #5299 )
...
* Add UWP-x64 action
* Fix formatting
* Fix missing -
2022-02-02 14:06:52 -08:00
pionere
2cfc83eab7
sync D3D_RenderReadPixels with D3D11_RenderReadPixels
...
- use the result of SDL_ConvertPixels to propagate error
- get rid of the verbose error message of D3D11_RenderReadPixels in case SDL_ConvertPixels failed
2022-02-02 14:56:38 -05:00
pionere
3bef4a5da6
cleanup error-handling in SDL_egl.c
...
- always set error message in SDL_EGL_ChooseConfig / SDL_EGL_CreateContext
- assume SDL_EGL_DeleteContext does not alter the error message
- sync generic error message of SDL_EGL_MakeCurrent with SDL_EGL_Get/SetSwapInterval
- do not overwrite error message of SDL_EGL_ChooseConfig in WINRT_CreateWindow
2022-02-02 14:56:21 -05:00
pionere
b5c5052608
cleanup error-handling in SDL_bmp.c
...
- add missing error-message in SDL_LoadBMP_RW
- check return value of SDL_RWtell in SDL_LoadBMP_RW
- use standard SDL_EFREAD error instead of custom strings
+ adjust return type of readRlePixels
2022-02-02 14:55:36 -05:00
pionere
19df4af2aa
simplify SDL_DUMMY/OFFSCREEN_CreateWindowFramebuffer
2022-02-02 14:45:48 -05:00
SonicMastr
ecd922b5cf
Fix touch holding detection after #5244 changes
2022-02-02 08:55:26 -08:00
Sylvain
df0d696a62
RISCOS: attempt to fix compilation ERANGE
2022-02-02 15:22:14 +01:00
Sylvain
87b02d3795
Linux thread name limitation: test for ERANGE (see bug #5283 )
2022-02-02 15:09:29 +01:00
Francisco Javier Trujillo Mata
daea9fa19e
Remove SDL_config_psp and references
2022-02-02 08:36:39 -05:00
Francisco Javier Trujillo Mata
ff5f5d0ef4
Updating Readme-psp info
2022-02-02 08:36:39 -05:00
Francisco Javier Trujillo Mata
ec632aba15
Remove legacy and unused Makefile.psp
2022-02-02 08:36:39 -05:00
Sylvain
220a9596f3
Remove testing instruction (see bug #5283 )
2022-02-02 10:01:11 +01:00
Sylvain
9e46a512b1
Fixed bug #5283 - limit thread name to 16 characters when using pthread_setname_np()
2022-02-02 09:58:15 +01:00
Weng Xuetian
b11dfd7611
Only generate key repetition for keys that should repeat on wayland.
...
This fix repetition on modifier keys, e.g. Control.
2022-02-01 17:56:04 -05:00
Weng Xuetian
a90a2e7582
Fix text_input_v3 preedit string
...
For every batch of text_input_v3 updates, if there is no preedit in this
batch, preedit should be cleared.
2022-02-01 15:51:26 -05:00
Sam Lantinga
03c4405b3b
Fixed D-Bus battery refresh call
2022-02-01 09:33:18 -08:00
SDL Wiki Bot
e1cf8d8748
Sync wiki -> header
2022-02-01 16:58:05 +00:00
SDL Wiki Bot
4fa21dd65b
Sync wiki -> header
2022-02-01 10:37:05 +00:00
Sylvain
d46cc18afc
Fix function comment
2022-02-01 11:35:26 +01:00
Sylvain
d224a63bda
Fix compilation for non Android
2022-02-01 11:34:01 +01:00
SDL Wiki Bot
61b6a2cad4
Sync wiki -> header
2022-02-01 10:33:04 +00:00
Sylvain
fe2ed6cf6f
Fixed bug #5221 - Add SDL_AndroidSendMessage()
2022-02-01 11:30:43 +01:00
pionere
97269e143d
adjustments to ime_candidates
...
- allocate ime_candidates on demand
- allow write to the whole allocated memory of ime_candidates
- ensure ime_candcount is set to zero in case the candidates can not be queried for any reason
2022-01-31 22:06:26 -05:00
pionere
6f404d0f04
cleanup IME_GetCandidateList / UILess_GetCandidateList
...
- move IME_ShowCandidateList, ImmGetContext and ImmReleaseContext to this function
- set ime_candpgsize to MAX_CANDLIST if dwPageSize is zero
- comment out deselection of ime_candsel in case of korean language for the moment (LANG_CHT does not work anyway)
2022-01-31 22:06:26 -05:00
Sam Lantinga
ec8e3104c8
Refresh the battery state before we query it on Linux
2022-01-31 17:01:08 -08:00
Frank Praznik
0b34f18045
audio: pipewire: Don't double free properties on init failure
...
The context and stream creation functions will destroy the passed properties object on failure, so no need to do it manually.
The pw_properties_free() function pointer is no longer needed, so it can be removed.
2022-01-30 23:23:03 -05:00
Sylvain
f7d3abddba
Fixed bug #964 - SDL_RenderCopy stretch loses proportion on viewport.
...
Handle the case when there is blending
2022-01-29 10:19:08 +01:00
Ozkan Sezer
8b139e26a3
regenerated configure script.
2022-01-29 10:33:50 +03:00
pionere
a5c610b0a3
revert 'Changed to use 0xFE instead of 0xFF for better sound quality.'
2022-01-28 20:40:19 -05:00
Ryan C. Gordon
43f0271b4e
Revert "fix compiler warnings in SDL_windows_gaming_input.c"
...
This reverts commit ca36cdb185f2f26241598068927821896f36b904.
The older Windows SDK's headers are wrong, and this change would crash if
you hotplug a device.
2022-01-28 20:40:19 -05:00
pionere
a70bb259c7
drop handle parameter of OpenDevice
2022-01-28 20:40:19 -05:00
pionere
47ddb04e17
cleanup/sync the main loop of *_OpenDevice functions to pick audio format II.
2022-01-28 20:40:19 -05:00
pionere
2eafe4340c
cleanup/sync the main loop of *_OpenDevice functions to pick audio format
2022-01-28 20:40:19 -05:00
pionere
3939ef72f8
cleanup SDL_GetAudioDeviceSpec
...
- drop unnecessary hascapture check
- call SDL_InvalidParamError and return -1 in case the index is out of range
- do not zfill SDL_AudioSpec
- adjust documentation to reflect the behavior
2022-01-28 20:40:19 -05:00
pionere
113109f839
cleanup SDL_GetAudioDeviceName
...
- drop unnecessary hascapture check
- call SDL_InvalidParamError in case the index is out of range
2022-01-28 20:40:19 -05:00
pionere
f91211eb17
cleanup WASAPI_PrepDevice
...
- reorganize the loop which checks for the right wave-format
- use the return value of UpdateAudioStream
- ensure SetError is called in SDL_NewAudioStream
2022-01-28 20:40:19 -05:00