Commit Graph

11157 Commits

Author SHA1 Message Date
Ozkan Sezer
f3fe8ea7ad fix CI windows errors again (because of unused stdio reader callbacks.) 2022-11-25 23:15:02 +03:00
Ozkan Sezer
a8faac1b8b fixed SDL_config_windows.h (was broken by 1e4cd682) 2022-11-25 23:04:04 +03:00
Ozkan Sezer
de0cca91d4 fix CI windows errors because of SDL_RWFromFP() 2022-11-25 22:55:30 +03:00
Ozkan Sezer
25e9449a41 fix SDL_PI_D (L suffix is for long double, not double.) 2022-11-25 22:40:37 +03:00
Ozkan Sezer
1e4cd682b3 removed M_PI detection from cmake, removed HAVE_M_PI from config files.
(didn't touch autofoo side for it so as not to break PR/6605)
2022-11-25 22:35:40 +03:00
Ozkan Sezer
0b8309da0c renamed SDL PI constants to SDL_PI_D and SDL_PI_F. 2022-11-25 22:35:24 +03:00
Sam Lantinga
199423612c Updated test programs with SDL_M_PI* 2022-11-25 10:57:12 -08:00
Sam Lantinga
05139f4a2e Removed SDL_RWFromFP from the public API
This will blow up if the SDL library and the application have a different C runtime, which can easily happen on Windows.
2022-11-25 10:46:26 -08:00
Sam Lantinga
670f1df469 Removed SDL_stdinc.h dependency on HAVE_M_PI, added SDL_M_PIl (double) and SDL_M_PIf (float) instead 2022-11-25 10:33:37 -08:00
Sam Lantinga
8733927e35 Remove SDL_stdinc.h dependency on HAVE_ALLOCA
Assume alloca() is available on all modern systems
2022-11-25 10:06:36 -08:00
Sam Lantinga
fa3814ddf1 Removed SDL_rwops.h dependency on stdio.h 2022-11-25 09:55:42 -08:00
Anonymous Maarten
34d538bd13 ci: fix typo in arguments of cmake
(aargh, sorry)
2022-11-25 05:07:32 +01:00
Anonymous Maarten
18ef9dcf61 ci: fix arguments for FreeBSD CMake
(sorry)
2022-11-25 04:52:52 +01:00
Anonymous Maarten
ecd36c8f07 cmake: fix typo's in last commit 2022-11-25 04:31:25 +01:00
Anonymous Maarten
c9b8559af5 cmake: use option to pass extra check options instead of hardcoding them 2022-11-25 03:15:30 +01:00
Anonymous Maarten
b4fc66525c ci: use CMake for building SDL on FreeBSD 2022-11-24 23:34:04 +01:00
Anonymous Maarten
c069ff1586 cmake: add /usr/local/include to check include directories 2022-11-24 23:33:59 +01:00
Anonymous Maarten
cd13600944 cmake: don't reset check state after pushing state 2022-11-24 23:33:54 +01:00
Michael Fitzmayer
67f31a19a8 Add bitdraw.h, remove non-working stub class 2022-11-24 13:12:36 -08:00
Anonymous Maarten
622f64dff2 cmake: add X11 include dir to check dirs 2022-11-24 20:59:02 +01:00
Sylvain Becker
4f780c7319 SDL_mfijoystick.m: remove VLA, so that projects can be built with error on vla 2022-11-24 16:07:03 +01:00
Ozkan Sezer
f73f23a35c added missing FGREP to Makefile.in. fixed syntax. regenerated configure. 2022-11-24 17:00:32 +03:00
Frank Praznik
836eb22442 wayland: Fix build when not using the shared Wayland libraries
Explicitly include the Wayland protocol headers when statically linking against the Wayland libraries or older system headers might be used instead of the local versions.
2022-11-24 03:00:56 -08:00
Sam James
3e7952ce8a Avoid use of deprecated egrep/fgrep
GNU grep 3.8 emits a deprecation warning on use of egrep/fgrep.

Signed-off-by: Sam James <sam@gentoo.org>
2022-11-24 02:58:20 -08:00
Joshua Root
239423e205 vulkan_metal.h: Make compatible with ObjC ARC
Fixes #6598
2022-11-23 17:37:38 -08:00
Frank Praznik
f47169fcba wayland: Fix libdecor_dispatch signature
The function returns an int, not a bool.
2022-11-23 15:16:37 -08:00
Sam Lantinga
003fd11de8 Regenerated dynamic API after SDL_syswm.h update 2022-11-23 14:34:21 -08:00
SDL Wiki Bot
d9efb7e3de Sync SDL3 wiki -> header 2022-11-23 22:07:15 +00:00
Sam Lantinga
b0840eb32e Updated SDL_syswm.h for SDL 3.0
* The header is no longer dependent on SDL build configuration
* The structures are versioned separately from the rest of SDL
* SDL_GetWindowWMInfo() now returns a standard result code and is passed the version expected by the application
* Updated WhatsNew.txt and docs/README-migration.md with the first API changes in SDL 3.0
2022-11-23 14:05:59 -08:00
Joshua Root
53ca1f7702 SDL_mfijoystick.m: fix build with Xcode < 9
Fixes #6601.
2022-11-23 12:47:46 -08:00
Joshua Root
f8cebeea59 Check build-time SDK in LoadMainMenuNibIfAvailable
Fixes building against OS X 10.7 SDK.
2022-11-23 12:27:50 -08:00
Joshua Root
d2910904fb SDL_cocoaopengl.h: ensure CVDisplayLinkRef is defined
The typedef seems to be pulled in coincidentally with newer SDKs, but
older ones need to import the header explicitly.
2022-11-23 12:21:31 -08:00
Ozkan Sezer
dcad446066 fix dynapi after SDL_GDKSuspendComplete addition. 2022-11-23 23:04:25 +03:00
SDL Wiki Bot
459be25ef9 Sync SDL3 wiki -> header 2022-11-23 19:59:15 +00:00
Sam Lantinga
d5ff71d685 Updated dynamic API after 040a17a50f 2022-11-23 11:55:02 -08:00
Ciro Mondueri
896e200d94 adds GDK suspend/resume basic handling (#6596)
(cherry picked from commit f6144dfe03)
2022-11-23 11:54:16 -08:00
ZX_Huang
a5b0583b7c
Add mouse test cases (#6563)
* Add mouse test cases

* fix SDL_GetGlobalMouseState result type

* fix other platforms compile error
2022-11-23 14:28:34 -05:00
pionere
13ea5f7a79 autotools: Detect SDL_JOYSTICK_MFI for macOS + Weak link with CoreHaptics
Only enable MFI if we also have CoreHaptics to ensure rumble works. See:
 - cmake: Detect SDL_JOYSTICK_MFI for macOS (bc409163a8)
 - cmake: Weak link with CoreHaptics (401f485490)
2022-11-23 11:27:48 -08:00
pionere
450f184f7d use SDL_InvalidParamError in the thread 'classes' 2022-11-23 14:27:26 -05:00
Joshua T. Fisher
61188d4972
Allow Foreign Windows to call SDL_Vulkan_CreateSurface on MacOS (#6436) 2022-11-23 11:13:33 -08:00
Cameron Cawley
4ee4e49e49 Select the best pixel formats for use in the software renderer 2022-11-23 11:08:40 -08:00
Ryan C. Gordon
712457ec28
Merge pull request #6321 from Daft-Freak/no-ie
Delete emscripten CanvasPixelArray (IE10/11) support
2022-11-23 14:03:35 -05:00
SDL Wiki Bot
675f77718c Sync SDL3 wiki -> header 2022-11-23 19:03:15 +00:00
Ryan C. Gordon
040a17a50f
Merge pull request #6317 from tycho/wip/angle-egl
EGL: fixes for better ANGLE support
2022-11-23 14:02:15 -05:00
Ryan C. Gordon
dcd9e21966
Merge branch 'main' into wip/angle-egl 2022-11-23 14:01:17 -05:00
Cameron Cawley
84781a7b6f
Disable the offscreen video driver if EGL is unavailable (#6234) 2022-11-23 10:55:34 -08:00
Ryan C. Gordon
3983c98ece
Merge branch 'main' into no-ie 2022-11-23 13:46:27 -05:00
Rémy Tassoux
a94d2e929d Prevent the delay conversion result from being truncated to 32bits 2022-11-23 10:44:53 -08:00
Rémy Tassoux
7d5ffbdab7 Use CREATE_WAITABLE_TIMER_HIGH_RESOLUTION flag in SDL_Delay on Windows 10 version 1803 and later 2022-11-23 10:44:53 -08:00
SDL Wiki Bot
6d5526f3a5 Sync SDL3 wiki -> header 2022-11-23 18:43:14 +00:00