Sam Lantinga
7c67213cef
editorconfig: remove trailing whitespace in source code
2022-12-26 10:34:07 -08:00
Sam Lantinga
00f05dcf49
render: only enable clipping when the rectangle is valid
...
Fixes https://github.com/libsdl-org/SDL/issues/6896
2022-12-26 10:24:25 -08:00
Sam Lantinga
cc49f1e279
Fixed crash if mutex functions are used before any mutex has been created
2022-12-26 09:49:36 -08:00
Sam Lantinga
d31776b17a
Also rename the internal function symbol when renaming API functions
2022-12-26 08:57:57 -08:00
avafinger
12e0e6d130
SDL3 with Hardware Acceleration for ROCKCHIP platform (mali blob)
2022-12-26 08:50:51 -08:00
Sam Lantinga
074a2b0f30
Cleaned up .gitignore, removing autotools files
...
This also removes various names for build directories. We're not going to add everyone's random build directory name, if you want git to appear clean you can build in the build subdirectory or out of tree.
2022-12-24 08:39:29 -08:00
Sam Lantinga
a2dab02a31
Only define platform compatibility symbols on the platform they represent
...
Fixes https://github.com/libsdl-org/SDL/issues/6892
2022-12-24 08:27:26 -08:00
Frank Praznik
abdfa809db
Prepend key modifier enum values with 'SDL_'
2022-12-23 20:35:49 -08:00
Sam Lantinga
b7ac14f2bd
Ignore __pycache__ directory
2022-12-23 20:33:09 -08:00
Sam Lantinga
32fad06a93
Catch the iOS demos when renaming API functions
2022-12-23 20:32:12 -08:00
Sam Lantinga
fd0631fd35
Added documentation for rename_symbols.py
2022-12-23 15:58:15 -08:00
Sam Lantinga
759f98085a
Used rename_api.py to add previously renamed symbols to SDL_oldnames.h
2022-12-23 15:08:30 -08:00
Sam Lantinga
c309a92034
Added rename_symbols.py to mass rename symbols in an SDL2 codebase
2022-12-23 15:07:21 -08:00
Sam Lantinga
0967a32fc6
Added a --code-only option to rename.py
...
Also added support for renaming macros and structures
2022-12-23 13:15:19 -08:00
Sam Lantinga
b5a92406eb
Added infrastructure for renaming API functions
...
You can rename APIs using rename.py and all the code and documentation will be updated, and entries will be added to WhatsNew.txt and docs/README-migration.md.
e.g.
rename.py SDL_foo.h function SDL_CreateFoo SDL_FooCreate
SDL_oldnames.h is included in the SDL header, and if you define SDL_ENABLE_OLD_NAMES, will redefine the old API functions to call the new ones, and if not, will define them as a symbol letting you what the new API function is.
2022-12-23 11:00:11 -08:00
Sam Lantinga
08c45eb37e
Added placeholder in the patch notes for renamed functions
2022-12-23 11:00:11 -08:00
Ryan C. Gordon
1cf2b566af
cpu: Removed 3DNow! support and SDL_Has3DNow().
...
Reference Issue #6636 .
2022-12-23 09:30:56 -08:00
João Henrique
0187209f46
kmsdrm: Fix wrong check on KMSDRM_CreateWindow.
...
A previous cleanup commit inverted a statement that checked the return value of
a KMSDRM_CreateSurfaces call during KMSDRM_CreateWindow, which causes the video
backend to always fail despite success.
This commit restores the intended behavior.
Fixes: 3c501b963d
("Clang-Tidy fixes (#6725 )").
2022-12-23 09:27:51 -08:00
meyraud705
126c60cb45
Add "SDL_" prefix to RW_SEEK macros
2022-12-23 09:25:37 -08:00
Sam Lantinga
1a80fbaae4
Moved the header sections into alphabetical order in README-migration.md
2022-12-22 17:06:46 -08:00
Sam Lantinga
6649309c83
Converted default_cursor.h from ANSI to UTF-8
2022-12-22 17:06:46 -08:00
Rudolf-Walter Kiss-Szakacs
cc7b6f9e49
Add SDL_HINT_WINDOWS_ENABLE_MENU_MNEMONICS.
...
(cherry picked from commit 232ed540dbf3924543ab1a084a43f2e70f4b31a9)
2022-12-22 10:06:02 -08:00
Shawn Hoffman
927c4d4aa4
fix string literal constness warnings
...
# Conflicts:
# src/video/winrt/SDL_winrtvideo.cpp
2022-12-22 10:03:40 -08:00
Ryan C. Gordon
7a5a1b16ce
events: Make sure new display events don't overlap with sdl2-compat.
...
Reference PR #6867 .
2022-12-22 11:47:54 -05:00
Ryan C. Gordon
3197632347
include: Renamed begin_code.h and close_code.h to have SDL_ prefixes.
...
Fixes #6864 .
2022-12-22 11:39:26 -05:00
Sam Lantinga
909b513c33
Made SDL_WINDOWEVENT_* and SDL_DISPLAYEVENT_* first class event types
...
Fixes https://github.com/libsdl-org/SDL/issues/6772
2022-12-22 07:38:13 -08:00
Anonymous Maarten
4676d1d31e
android: register all methods using JNI_OnLoad
2022-12-21 23:00:58 -08:00
Ryan C. Gordon
c9887c5c72
include: Split out functions in SDL.h to SDL_init.h.
...
SDL.h now exists solely as a header that includes everything else, instead
of one that forces you to include everything else when you just want the
declaration for SDL_Init().
Fixes #6840 .
2022-12-22 01:05:10 -05:00
Ryan C. Gordon
182806e39f
docs: Updated migration notes for SDL_RWops.
2022-12-22 00:55:54 -05:00
Anonymous Maarten
3b8548cdcf
android: fix java fingerprint fo nativeAddJoystick
2022-12-21 09:39:22 -08:00
Anonymous Maarten
9e6952ed8c
android: fix android-prefab.sh for SDL3
2022-12-21 09:39:22 -08:00
Anonymous Maarten
19d4d64cfe
cmake: disable precompiled header for SDL_spinlock.c when targeting Android
...
This fixes the following error:
error: PCH file was compiled for the target 'thumbv7-none-linux-android16' but the current translation unit is being compiled for target 'armv7-none-linux-android16'
2022-12-21 09:39:22 -08:00
Anonymous Maarten
9421828e7e
gendynapi.py: add android native symbols to SDL_dynapi.sym
2022-12-21 09:39:22 -08:00
Anonymous Maarten
063cb60659
gendynapi.py: use pathlib + uppercase global variables
2022-12-21 09:39:22 -08:00
Caleb Cornett
19039b6ca4
Fix GDK OpenGL build error
2022-12-20 23:18:04 -05:00
Caleb Cornett
3ebfb15469
gdk: Add support for building with OpenGL on Xbox
2022-12-19 17:57:06 -05:00
Sam Lantinga
de871dc5f7
Sorted headers in Xcode project
...
This lets us more easily see when one is missing
2022-12-19 09:55:53 -08:00
Sam Lantinga
0d172ccb40
Fixed marking SDL headers as public in the Xcode project
...
Fixes https://github.com/libsdl-org/SDL/issues/6851
2022-12-19 09:45:43 -08:00
Anonymous Maarten
8f9227e4be
cmake: use CMakePushCheckState to handle check states
2022-12-19 09:19:45 -08:00
Anonymous Maarten
fab33545fa
cmake: remove outdated fixme
2022-12-19 09:19:45 -08:00
Anonymous Maarten
fe8291e09a
cmake: only install SDL_test*.h headers when building SDL_test library
2022-12-19 09:19:45 -08:00
Anonymous Maarten
d53cd7161a
sdlwiki: SDL_version.h moved to include/SDL3
2022-12-19 09:19:45 -08:00
Anonymous Maarten
653893f188
cmake: declutter root + remove obsolete variables
2022-12-19 09:19:45 -08:00
Anonymous Maarten
39a7abad7a
cmake: lowercase all macros
2022-12-19 09:19:45 -08:00
Anonymous Maarten
289b024715
cmake: add function to print dict list
2022-12-19 09:19:45 -08:00
Anonymous Maarten
a787b1c0b7
cmake: LINKER_LANGUAGE is a target property, not a cmake variable
...
LINKER_LANGUAGE needs to be used as following:
Usage
cmake [options] <path-to-source>
cmake [options] <path-to-existing-build>
cmake [options] -S <path-to-source> -B <path-to-build>
Specify a source directory to (re-)generate a build system for it in the
current working directory. Specify an existing build directory to
re-generate its build system.
Run 'cmake --help' for more information.
Haiku does not not this property explicitly set because CMake knows .cc files are c++
2022-12-19 09:19:45 -08:00
Anonymous Maarten
69812678cf
cmake: cache cmake config installation folder in SDL_INSTALL_CMAKEDIR_ROOT
...
Make sure SDLx is not part of the cached variable such that it can be re-used by SDL2 and SDL3
2022-12-19 09:19:45 -08:00
Anonymous Maarten
88784ba547
.editorconfig: remove autotools files + trim whitespace from cmake files
2022-12-19 09:19:45 -08:00
Sam Lantinga
83b29f9ce1
Don't send Razer devices the Sony third-party query feature report
...
Some of them lock up or reset, and the vast majority of devices are not actually game controllers.
Fixes https://github.com/libsdl-org/SDL/issues/6733
2022-12-19 09:14:55 -08:00
Maido
94a0e5ea8d
Android active driver check ( #6850 )
...
Check if a driver is active before attempting to handle the devices.
Otherwise an assertion will fail.
2022-12-19 16:02:10 +01:00