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
Frank Praznik
c2b0c41c0a
wayland: Set/unset the opaque regions on surfaces when transparency is toggled
...
Caches the SDL_HINT_VIDEO_EGL_ALLOW_TRANSPARENCY hint at init time and registers a callback, which is fired when the hint is changed during runtime and toggles the opaque region for existing surfaces.
2022-10-06 14:00:36 -04:00
Frank Praznik
ea5958009c
wayland: Set the damage buffer size when supported
...
The preferred method for setting the damage region on compositor protocol versions 4 and above is to use wl_surface.damage_buffer. Use this when available and only fall back to wl_surface.damage on older versions.
Bumps the highest supported version of wl_compositor to version 4.
2022-10-06 14:00:36 -04:00
Frank Praznik
a8cb7bbe2f
wayland: Add dedupe logic to window geometry configuration
...
Adds deduplication logic to ConfigureWindowGeometry() to avoid setting redundant backbuffer, viewport and surface opaque region dimensions. State is now only set when the window and/or backbuffer dimensions change.
This repurposes the viewport rect to always hold the actual size of the window, which can differ from the SDL size if things are being scaled. The SDL_Rect was removed in favor of two ints, as the x/y members of the struct were never used, so they just wasted space.
Since the internal variables always have the true window size, the width/height getter functions are no longer required and can be removed.
2022-10-06 14:00:36 -04:00
Sam Lantinga
f687cbd4c6
Clarified that GNU sort isn't required, we just need the -V option to be supported
2022-10-06 09:00:57 -07:00
Sam Lantinga
8c587636dc
GNU sort isn't available on older macOS and some BSD systems
...
Don't prevent building entirely, just warn that we won't be able to find dynamic libraries in this case.
Fixes https://github.com/libsdl-org/SDL/pull/6338
2022-10-06 08:25:54 -07:00
Ozkan Sezer
e3b2830f99
updated VS project file
2022-10-06 18:03:28 +03:00
slime
d2160c29d1
iOS: implement SDL_GetWindowSizeInPixels.
2022-10-05 18:39:18 -07:00
Ozkan Sezer
fa7ffa4e88
change the iconv configuration option names to be more verbose.
2022-10-06 03:37:50 +03:00
SDL Wiki Bot
4ca86dae2f
Sync SDL wiki -> header
2022-10-05 23:26:14 +00:00
Sam Lantinga
ddc3de602e
Added mapping for PS5 controller over Bluetooth on Android 12
...
Tested on Pixel 3a
2022-10-05 16:24:05 -07:00