Guldoman
b91ddbc3e2
wayland: null-terminate drop data
2022-10-09 08:48:34 -07:00
SDL Wiki Bot
9df1af352f
Sync SDL wiki -> header
2022-10-09 15:44:07 +00:00
Ozkan Sezer
d022039529
testhaptic: fix watcom "&array may not produce intended result" warning
2022-10-09 12:01:02 +03:00
Anonymous Maarten
151c23415e
ci: Add SDL_WERROR to a few configurations
2022-10-08 23:41:07 +02:00
Anonymous Maarten
eb8eb621b1
SDL_x11modes: fix -Wunused-variable
2022-10-08 23:41:07 +02:00
Anonymous Maarten
01498d3acf
SDL_render_psp.c: fix -Wshadow
...
Emitted by PSP's gcc
2022-10-08 23:41:07 +02:00
Anonymous Maarten
4298e79887
SDL_offscreenframebuffer.c: fix format '%d' expecting int instead of Uint32
...
Emitted by Nintendo 3DS's gcc (fix is same as used by ngage)
2022-10-08 23:41:07 +02:00
Anonymous Maarten
b8a4b8d1cd
testautomation_mouse: fix format '%i' expecting 'int' instead of 'Uint32'
...
Emitted by Nintendo 3DS's gcc
2022-10-08 23:41:07 +02:00
Anonymous Maarten
b51a88a95c
SDL_malloc.c: fix variable 'used' set but not used
...
Emitted by clang-cl
2022-10-08 23:41:07 +02:00
Anonymous Maarten
5c150ddc2f
SDL_mslibc.c: fix unknown pragma ignored [-Wunknown-pragmas]
...
Emitted by clang-cl
2022-10-08 23:41:07 +02:00
Anonymous Maarten
37beabd11c
SDL_mslib.c: clang-cl does not support `/GL-`
2022-10-08 23:41:07 +02:00
Anonymous Maarten
85fd40fafd
Fix -Wunused-const-variable warning when using clang-cl
2022-10-08 23:41:07 +02:00
Anonymous Maarten
7ae5d8d406
testmessage: fix conversion from `intptr_t` to `Uint32`
...
Emitted by MSVC
2022-10-08 23:41:07 +02:00
Anonymous Maarten
02b200ef08
testoffscreen: fix '<': signed/unsigned mismatch
...
Emitted by MSVC
2022-10-08 23:41:07 +02:00
Anonymous Maarten
7a7980fafa
testnative: fix conversion from `time_t` to `unsigned int`
...
Emitted by MSVC
2022-10-08 23:41:07 +02:00
Anonymous Maarten
8770689525
testmouse: add explicit int-cast to avoid warning about converting `float` to `int`
...
Emitted by MSVC
2022-10-08 23:41:07 +02:00
Anonymous Maarten
3c251ec41e
testintersections: fix conversion from `time_t` to `unsigned int`
...
Emitted by MSVC
2022-10-08 23:41:07 +02:00
Anonymous Maarten
b771d9beec
tests: avoid MSVC preaching about unsafe functions
2022-10-08 23:41:07 +02:00
Anonymous Maarten
ebae142aa4
testhaptic: fix conversion from `size_t` to `int`
...
Emitted by MSVC
2022-10-08 23:41:07 +02:00
Anonymous Maarten
18c776e155
testspriteminimal: fix conversion from `time_t` to `unsigned int`
...
Emitted by MSVC
2022-10-08 23:41:07 +02:00
Anonymous Maarten
f3389f13ef
testgeometry: fix conversion from 'double' to 'float', possible loss of data
...
emitted by MSVC
2022-10-08 23:41:07 +02:00
Anonymous Maarten
2105c7f6ed
SDL_thread.c: fix unused function SDL_FreeErrBuf when building without thread support (emscripten)
2022-10-08 23:41:07 +02:00
Anonymous Maarten
07225d2e26
cmake: fix check for -marm
...
This fixes the following warning:
clang: warning: argument unused during compilation: '-marm' [-Wunused-command-line-argument]
2022-10-08 23:41:07 +02:00
Anonymous Maarten
45da133999
cmake: don't error on apple when using deprecated declarations
2022-10-08 23:41:07 +02:00
Anonymous Maarten
274ec02581
testautomation: avoid format related warnings by using a few pragma's
...
ci: enable -Werror to a few platforms
2022-10-08 23:41:07 +02:00
Anonymous Maarten
d04fa0ef76
controllermap: use enum to avoid '-Wmaybe-uninitialized'
...
Emitted by MinGW:
In function 'WatchJoystick',
inlined from 'SDL_main' at D:/a/SDL/SDL/test/controllermap.c:802:9:
D:/a/SDL/SDL/test/controllermap.c:437:9: warning: 'marker' may be used uninitialized [-Wmaybe-uninitialized]
437 | SDL_SetTextureAlphaMod(marker, alpha);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
D:/a/SDL/SDL/test/controllermap.c: In function 'SDL_main':
D:/a/SDL/SDL/test/controllermap.c:355:71: note: 'marker' was declared here
355 | SDL_Texture *background_front, *background_back, *button, *axis, *marker;
2022-10-08 23:41:07 +02:00
Anonymous Maarten
a905db9d65
testcustomcursor: fix Wswitch warning by casting the arg to an int
2022-10-08 23:41:07 +02:00
Anonymous Maarten
bb527678a3
testgamecontroller: fix -Wshadow warning by renaming global axis+button textures
2022-10-08 23:41:07 +02:00
Anonymous Maarten
57c886551f
automation_main.c: fix -Wformat-zero-length warning due to SDL_SetError("")
2022-10-08 23:41:07 +02:00
Anonymous Maarten
be5f55c47e
watcom: add ENABLE_WERROR option to makefiles
2022-10-08 23:41:07 +02:00
Anonymous Maarten
335c672498
autotools: add --enable-werror option
2022-10-08 23:41:07 +02:00
Anonymous Maarten
77822ed166
cmake: add SDL_WERROR to conditionally enable/disable -Werror
2022-10-08 23:41:07 +02:00
Anonymous Maarten
1064fdee8c
cmake: append to COMPILE_FLAGS property
2022-10-08 23:41:07 +02:00
Anonymous Maarten
68e20501d6
autotools: by default, disable x11 on MacOS/iOS
2022-10-08 23:41:07 +02:00
Sam Lantinga
b18c361b0f
Updated variable name for mouse coordinates in mouse wheel events
2022-10-08 13:18:00 -07:00
Sam Lantinga
4f318c904a
Add cursor position to mouse wheel event (thanks @meyraud705!)
...
Fixes https://github.com/libsdl-org/SDL/pull/6351
2022-10-08 12:01:42 -07:00
Sam Lantinga
5490505a2b
Added a note to update the website after a stable release
2022-10-08 09:41:10 -07:00
Sam Lantinga
17b43b0fdd
Don't try to create a semaphore for the mutex implementation if threads are disabled
...
Fixes https://github.com/libsdl-org/SDL/issues/6344
2022-10-08 09:32:09 -07:00
Sam Lantinga
33050fea39
Only open HID devices that might have a HIDAPI driver available
...
This prevents an OS prompt for every connected device when running on Android
2022-10-07 11:29:49 -07:00
Kamil Ševeček
31991ab851
Fix \sa to a valid function in SDL_metal.h.
2022-10-07 07:15:53 -07:00
Nicolas Cian
484d5fd6cf
audio open: ensure 2 devices don't get the same id
2022-10-07 06:45:01 -07:00
Brad Smith
5ec1cef6b5
Further fixes for the sndio CMake detection
2022-10-07 11:55:00 +03:00
Ozkan Sezer
e714d4d724
regenerated configure script.
2022-10-07 05:24:20 +03:00
Brad Smith
f48823181b
Use the pkg-config file when checking for sndio.
2022-10-06 19:09:10 -07:00
Sam Lantinga
fc720321b3
Fix rare deadlock when opening a HID controller on Android
...
Fixes https://github.com/libsdl-org/SDL/issues/6347
2022-10-06 18:23:07 -07:00
Sam Lantinga
689409fd97
Fixed the start button on the Nimbus+ controller on tvOS
...
Also updated mappings for Nintendo Switch controllers on tvOS, to reflect the lack of guide/menu button availability
2022-10-06 17:34:24 -07:00
Sam Lantinga
b4aba10154
Reverted game controller buttons from interacting with message box dialogs
...
These would only work for non-HIDAPI controllers, and other controller input would leak past the dialog, both of which would be confusing.
2022-10-06 12:10:46 -07:00
Sam Lantinga
893c87b27b
Fixed game controller buttons being unresponsive when the on-screen keyboard is up
...
Also mapped controller A and B buttons to interact with messagebox dialogs
2022-10-06 12:10:45 -07:00
Frank Praznik
914a65e098
wayland: Don't unset min/max values when entering fullscreen via a compositor event
...
If the compositor is entering fullscreen and hasn't removed any constraints itself, it's already too late at this point. Remove the unnecessary call.
Restoring the limits when exiting fullscreen is still required, though, as they may have been removed when entering fullscreen via an SDL request.
2022-10-06 14:00:36 -04:00
Frank Praznik
69cf5fb0e1
wayland: Remove surface type helpers
...
These were remnants of a time before the surface type was explicitly stored, so they can be removed per the TODO note.
2022-10-06 14:00:36 -04:00