src/misc


Log

Author Commit Date CI Message
Sam Lantinga b8d85c69 2022-11-30T12:51:59 Update for SDL3 coding style (#6717) I updated .clang-format and ran clang-format 14 over the src and test directories to standardize the code base. In general I let clang-format have it's way, and added markup to prevent formatting of code that would break or be completely unreadable if formatted. The script I ran for the src directory is added as build-scripts/clang-format-src.sh This fixes: #6592 #6593 #6594 (cherry picked from commit 5750bcb174300011b91d1de20edb288fcca70f8c)
Sylvain Becker fb0ce375 2022-11-27T17:38:43 Cleanup add brace (#6545) * Add braces after if conditions * More add braces after if conditions * Add braces after while() conditions * Fix compilation because of macro being modified * Add braces to for loop * Add braces after if/goto * Move comments up * Remove extra () in the 'return ...;' statements * More remove extra () in the 'return ...;' statements * More remove extra () in the 'return ...;' statements after merge * Fix inconsistent patterns are xxx == NULL vs !xxx * More "{}" for "if() break;" and "if() continue;" * More "{}" after if() short statement * More "{}" after "if () return;" statement * More fix inconsistent patterns are xxx == NULL vs !xxx * Revert some modificaion on SDL_RLEaccel.c * SDL_RLEaccel: no short statement * Cleanup 'if' where the bracket is in a new line * Cleanup 'while' where the bracket is in a new line * Cleanup 'for' where the bracket is in a new line * Cleanup 'else' where the bracket is in a new line (cherry picked from commit 6a2200823c66e53bd3cda4a25f0206b834392652 to reduce conflicts merging between SDL2 and SDL3)
chalonverse f317d619 2022-07-01T13:59:14 Xbox GDKX support (#5869) * Xbox GDK support (14 squashed commits) * Added basic keyboard testing * Update readme * Code review fixes * Fixed issue where controller add/removal wasn't working (since the device notification events don't work on Xbox, have to use the joystick thread to poll XInput)
Ozkan Sezer c93e5520 2022-02-04T20:03:50 minor update to winrt/SDL_sysurl.cpp from: https://github.com/microsoft/vcpkg/blob/master/ports/sdl2/0006-Update-SDL_sysurl.cpp.patch
Charlie Birks 15ebad6e 2022-01-22T13:31:11 emscripten: Implement SDL_OpenURL
Sam Lantinga 120c76c8 2022-01-03T09:40:00 Updated copyright for 2022
Sylvain fae70349 2021-11-23T10:33:12 Fix warnings: static, include, un-initialized vairables
Sylvain d31251b0 2021-11-21T22:30:48 use SDL's functions version inplace of libc version
superzazu 839ca0ea 2021-11-03T16:35:24 SDL_OpenURL (macOS): try to open path if the url cannot be opened (#4830) * SDL_OpenURL (macOS): try to open path if the url cannot be opened * SDL_OpenURL (macOS): use CFURLCreateWithBytes & LSOpenCFURLRef to correctly escape input * fix type casting + indentation
Sebastian Krzyszkowiak d4e1b497 2021-08-01T09:15:26 unix: OpenURL: Move unsetenv above vfork From the vfork manpage: > The vfork() function has the same effect as fork(2), except that > the behavior is undefined if the process created by vfork() either > modifies any data other than a variable of type pid_t used to store > the return value from vfork(), or returns from the function in which > vfork() was called, or calls any other function before successfully > calling _exit(2) or one of the exec(3) family of functions. unsetenv is still called inside a child process, so it does not influence the rest of the application.
Sam Lantinga 9b7b9287 2021-07-31T23:28:41 Clear LD_PRELOAD so Chrome opens correctly when this application is launched by Steam This fixes https://github.com/libsdl-org/SDL/issues/4565
Ivan Epifanov e58a955e 2021-03-08T18:39:00 Deprecate dolcesdk
Ivan Epifanov 7c4d20cf 2021-02-12T23:57:43 Fix for dolcesdk
uyjulian b52e9459 2021-01-29T01:26:13 Add support for open URL
Ozkan Sezer 265a1cc9 2021-01-05T15:50:02 use WIN_StringToUTF8W instead of WIN_StringToUTF8 where needed (#2) cf. bug #5435. - SDL_wasapi_win32.c (GetWasapiDeviceName): pwszVal is WCHAR* - windows/SDL_sysfilesystem.c (SDL_GetBasePath, SDL_GetPrefPath) - windows/SDL_sysurl.c (SDL_SYS_OpenURL): wurl is WCHAR* - SDL_windowssensor.c (ConnectSensor): bstr_name is WCHAR* - windows/SDL_systhread.c (SDL_SYS_SetupThread): strw is WCHAR*
Sam Lantinga 9130f7c3 2021-01-02T10:25:38 Updated copyright for 2021
Cameron Cawley 59022829 2020-10-11T17:32:32 riscos: Implement SDL_OpenURL()
Ryan C. Gordon 46274269 2020-10-06T00:42:17 url: WinRT actually works now (and has been tested, hooray!).
Ryan C. Gordon fc05a696 2020-10-05T18:08:58 url: Attempt #23235 at WinRT support...
Ryan C. Gordon 02addf13 2020-10-05T18:01:47 url: Another attempt at WinRT implementation.
Ryan C. Gordon 7bec9df1 2020-10-05T16:10:10 url: Add to Xcode project files, iOS/mac fixes.
Ryan C. Gordon 57e3003d 2020-10-05T15:47:47 url: Attempt at WinRT support.
Ryan C. Gordon 566479c8 2020-10-05T15:37:37 url: ShellExecuteW returns an HINSTANCE, so deal with that more correctly.
Ryan C. Gordon ee56090d 2020-10-05T15:03:44 url: Cleanups and compiler warning fixes.
Ryan C. Gordon cc158f29 2020-10-05T14:36:37 url: removed "extern" from function declaration.
Ryan C. Gordon a3802cc5 2020-10-05T14:30:33 url: Patched to compile on C89 compilers.
Ryan C. Gordon 0099e38a 2020-10-05T14:21:03 url: More win32 fixes.
Ryan C. Gordon 1f4fecc5 2020-10-05T14:07:32 url: Patched to compile on Windows.
Ryan C. Gordon 777d0f19 2020-10-05T14:06:25 url: patched to compile on macOS.
Ryan C. Gordon d068d05a 2020-10-05T14:01:08 url: Make sure Haiku's C++ implementation is flagged as 'extern "C"'
Ryan C. Gordon bf9fcb53 2020-10-05T14:00:08 url: The function is "SDL_Unsupported" not "SDL_Unimplemented"
Ryan C. Gordon 2d82cf78 2020-10-05T13:59:03 url: put the Android bits in core/android
Ryan C. Gordon efd665e2 2020-10-05T13:56:45 Backed out changeset a43cb4e54949 Trying this a different way.
Ryan C. Gordon 913aa610 2020-10-05T13:53:15 url: Include SDL_misc.h to get public function declaration.
Ryan C. Gordon 5f688122 2020-10-05T13:52:52 url: patched to compile on Android.
Ryan C. Gordon 84f1b950 2020-10-05T13:39:39 url: fixed wrong include.
Ryan C. Gordon 77c9d73b 2020-10-05T11:30:33 Removed SDL_AndroidOpenURL, added SDL_OpenURL. Still needs to be wired into Xcode and Visual Studio projects.