Sam Lantinga
bcb0f1de23
Fixed build when events are disabled
...
Fixes https://github.com/libsdl-org/SDL/issues/5413
2022-03-17 08:52:31 -07:00
pionere
01bfde4520
simplify SetDSerror
...
- no need to keep the error in a static variable
- always print the error code
- reduce the required stack-size
- reduce the number of snprintf calls (and code size)
2022-03-17 08:44:06 -07:00
Ozkan Sezer
01663238dc
testplatform.c: move static asserts out of TestTypes().
2022-03-17 08:43:27 -07:00
Ozkan Sezer
f0d2747df1
use _Static_assert for SDL_COMPILE_TIME_ASSERT(), when available
2022-03-17 08:43:27 -07:00
Ozkan Sezer
dfbe1f7248
SDL_GetBasePath() fixes for OS/2
2022-03-17 03:50:02 +03:00
Sylvain
b2db570ce9
SDL_triangle_blit_slow: sync code with SDL_blit_slow to handle ARGB2101010
2022-03-16 18:09:40 +01:00
Sylvain
93e7caab9a
SDL_blit_slow: remove one nested 'if()' because of ARGB2101010 handling
2022-03-16 18:08:20 +01:00
Sylvain
56568ffb38
Remove 'reserved identifier' warning
2022-03-16 18:04:40 +01:00
Ozkan Sezer
1c1f5c180f
imported two libtool mainstream commits 28fbcb6a and b55b1cc8
2022-03-16 17:15:20 +03:00
pionere
2c6a9c5194
minor optimization (SDL_audiocvt.c)
2022-03-16 07:58:28 -04:00
pionere
85dff3e453
emscripten: obey enable-misc/SDL_MISC settings
2022-03-16 14:55:28 +03:00
staphen
123b9aaa41
Adjust gradle dependencies to enable the build to position assets for the APK
2022-03-15 21:57:25 -07:00
Ozkan Sezer
5905696e66
SDL_audiocvt.c: minor cleanup.
2022-03-15 23:10:04 +03:00
Ozkan Sezer
61a93d3c46
minor whitespace cleanup.
2022-03-15 23:10:02 +03:00
Ozkan Sezer
d1e4367f58
SDL_windowskeyboard.c: fix build with SDL_DISABLE_WINDOWS_IME defined.
...
Fixes https://github.com/libsdl-org/SDL/issues/5408
2022-03-15 21:41:02 +03:00
Ryan C. Gordon
1ee196b483
INSTALL.txt: Say "macOS" instead of "Mac OS X" in modern times.
...
Reference Issue #5407 .
2022-03-15 13:07:55 -04:00
Sylvain
90b13e1488
Merge remote-tracking branch 'refs/remotes/origin/main'
2022-03-15 17:50:57 +01:00
Sylvain
c44966b78b
Fixed bug #2691 - re-enable surface_testCompleteSurfaceConversion for ARGB2101010
2022-03-15 17:48:38 +01:00
Sylvain
f3e86b9fd3
Fixed bug #2199 : make SDL_blit_slow handles SDL_PIXELFORMAT_ARGB2101010, storing as RGBA
2022-03-15 17:46:12 +01:00
Sam Lantinga
67848b6531
Fix name of macOS platform and link to README file
2022-03-15 09:25:01 -07:00
Sylvain Becker
3bebdaccb7
METAL: clip rect w/h must be <= render pass
2022-03-15 10:37:17 +01:00
Wohlstand
7c421fec16
SDL_audiocvt.c: Don't byteswap 8-bit streams
...
Otherwise, this results an assert on big endian machines when attenpting to use SDL_LoadWAV_RW function to load 8-bit WAV files.
2022-03-14 08:41:07 -07:00
Zach Reedy
363c36781d
Fixed: Incorrect assumption that mouse button is released when window is allocated
2022-03-14 08:38:25 -07:00
Guus Waals
7495b98141
Make SDL_VIDEO_OPENGL_EGL optional on Android
2022-03-14 13:38:12 +01:00
Sylvain
0ad606b48d
Android: add comment to set render target to NULL when going to background (bug #4041 )
2022-03-14 10:43:18 +01:00
Ozkan Sezer
ecc1c871e6
SDL_endian.h: use endian predefs from newer gcc and clang versions.
...
Closes: https://github.com/libsdl-org/SDL/pull/5403
2022-03-14 10:10:40 +03:00
Ozkan Sezer
ee6bfcdd66
SDL_blit_N.c: removed duplicated const (fixes bug #5401 )
2022-03-13 20:56:42 +03:00
Ryan C. Gordon
3ab739afff
cmake: Make test code use proper C main functions.
...
Fixes #5021 .
2022-03-13 12:10:52 -04:00
Ozkan Sezer
072db7b005
SDL_windowskeyboard.c (IME_IsTextInputShown): remove unused local vars.
2022-03-12 01:56:40 +03:00
SDL Wiki Bot
229297d97f
Sync wiki -> header
2022-03-11 22:47:04 +00:00
Zach Reedy
d14a126383
IME Composition Truncation + SDL_IsTextInputShown + SDL_ClearComposition ( #5398 )
...
* Fixes for IME Composition Truncation + Addition of SDL_ClearComposition, SDL_IsTextInputShown
* Fixed: Documentation and code style issues raised during code review.
2022-03-11 14:45:17 -08:00
Charlie Birks
9de97e19cc
emscripten: Don't prevent default on filtered key events
2022-03-11 11:55:41 +00:00
Ozkan Sezer
afb0606f5a
minor os/2 clean-ups.
2022-03-10 18:50:10 +03:00
Ozkan Sezer
50575aa184
Makefile.os2: fixed setting OS2DEBUG in CFLAGS.
2022-03-10 18:50:10 +03:00
Cameron Gutman
677dc1015c
rawinput: Fix double detection of gamepads on some 3rd party X360 wireless receivers
...
The name that the Raw Input joystick driver pulls from the HID stack comes
from USB string descriptors contained on the device. For official wireless
receivers, this always contains "Xbox 360 Wireless Receiver for Windows"
which matches the friendly name that WGI provides.
3rd party Xbox 360 wireless receivers may have different strings in their
USB string descriptors (one uses "XBOX 360 For Windows" instead). This
fails to match WGI's name and causes Raw Input and WGI to both report the
same gamepad.
Since wireless Xbox 360 controllers seem to have a consistent VID/PID
regardless of the adapter enumerating them, we can also match on that to
catch these.
The duplicate case reported to me was:
Controller (XBOX 360 For Windows) - 030000005e040000a102000000007200
Xbox 360 Wireless Receiver for Windows - 030000005e0400000000000000007701
2022-03-09 21:19:53 -08:00
Ozkan Sezer
bf69868924
reduced a few ifdefs, fixed an unused warning if built w/o SDL_HAVE_YUV.
2022-03-10 01:55:04 +03:00
Jo Bates
01d38e7ade
Make Win32 fullscreen and borderless windows minimizable
2022-03-09 14:08:12 -08:00
Sam Lantinga
09b652b70a
Make sure the string properties are actually strings (thanks Nat!)
2022-03-09 13:54:23 -08:00
Sam Lantinga
c6eef542ab
Removed dead code
2022-03-09 13:48:31 -08:00
pionere
911ba8d343
hide impossible branch in D3D_UnlockTexture
2022-03-09 20:17:55 +01:00
Sylvain
ea5b482bff
Remove unused warning
2022-03-09 15:38:36 +01:00
Sylvain
45833a148d
Prevent shadowing static variable '_this' with local paramter '_this' of SDL_CreateWindowTexture
2022-03-09 15:33:45 +01:00
Sylvain
a4a80c8607
Fix variable may be uninitialized when used here [-Wconditional-uninitialized]
2022-03-09 15:21:55 +01:00
Sylvain
04256a5372
Fix compilation (see #5313 )
2022-03-09 15:12:25 +01:00
pionere
0983fcee5e
fix memory leak in D3D11_CreateRenderer
2022-03-09 15:03:49 +01:00
pionere
3f8b450de2
extend the code hidden by SDL_HAVE_YUV
2022-03-09 15:03:30 +01:00
pionere
ce1883e1e7
fix compile error with disabled SDL_HAVE_YUV (vita)
...
- UpdateTextureYUV is not defined if SDL_HAVE_YUV is not defined/zero
+ calling SDL_free suffice if the VITA_GXM_RenderData was just allocated
2022-03-09 15:02:44 +01:00
Sam Lantinga
14db417e12
Reenable getting the serial number on macOS
...
We filter now on game controllers, so we shouldn't hit the crash bug on random devices that this was working around.
2022-03-08 21:32:27 -08:00
Sam Lantinga
c3ca3445bd
Prefer HIDAPI on macOS, as that has extended functionality
2022-03-08 18:56:49 -08:00
Sam Lantinga
6a787619e6
Allow reading background events for MFi controllers
2022-03-08 18:42:13 -08:00