Sam Lantinga
15b464747f
WhatsNew.txt should be new features in SDL 3.0
...
docs/README-migration.md will cover API changes and removals since SDL 2.0
2022-12-27 10:06:45 -08:00
Sam Lantinga
5baed331f1
Don't add symbol renaming to WhatsNew.txt
2022-12-27 10:00:10 -08:00
Sam Lantinga
84725c00d8
Make sure we update the cmake test programs as well
2022-12-27 09:56:16 -08:00
Sam Lantinga
659abc721a
SDL API renaming: SDL_gamecontroller.h
...
SDL_gamecontroller.h has been renamed SDL_gamepad.h, and all APIs have been renamed to match.
Fixes https://github.com/libsdl-org/SDL/issues/6885
2022-12-27 09:47:24 -08:00
Sylvain
ab0c5cf07d
Fix compilation
2022-12-27 17:25:31 +01:00
Sam Lantinga
59467ff063
Make it easier to mass rename symbols in the SDL API
2022-12-27 07:31:27 -08:00
Sam Lantinga
c6969df4d7
SDL API renaming: SDL_video.h
...
Fixes https://github.com/libsdl-org/SDL/issues/6880
2022-12-27 06:38:34 -08:00
Sam Lantinga
cc0296c934
SDL API renaming: SDL_surface.h
...
Fixes https://github.com/libsdl-org/SDL/issues/6884
2022-12-27 06:36:39 -08:00
Sam Lantinga
2db699f48e
SDL API renaming: SDL_sensor.h
...
Fixes https://github.com/libsdl-org/SDL/issues/6888
2022-12-27 06:23:39 -08:00
Sam Lantinga
0d54115235
SDL API renaming: SDL_render.h
...
Fixes https://github.com/libsdl-org/SDL/issues/6883
2022-12-27 06:21:13 -08:00
Sam Lantinga
083e436a1a
SDL API renaming: SDL_pixels.h
...
Fixes https://github.com/libsdl-org/SDL/issues/6886
2022-12-27 06:08:31 -08:00
Sylvain
3d063d7295
More renaming SDL_FreeWAV() to SDL_Free()
2022-12-27 14:53:10 +01:00
Sam Lantinga
fc478c1bc0
SDL API renaming: SDL_joystick.h
...
Fixes https://github.com/libsdl-org/SDL/issues/6881
2022-12-27 05:50:46 -08:00
Sylvain Becker
aa0053141b
Remove SDL_VideoInit / Quit. Prefer SDL_SubSytemInit / Quit ( #6913 )
2022-12-27 05:42:48 -08:00
Sam Lantinga
713ba2e31a
SDL API renaming: SDL_audio.h
...
Fixes https://github.com/libsdl-org/SDL/issues/6879
2022-12-27 05:32:55 -08:00
Sam Lantinga
9625fb2832
Documentation cleanup
2022-12-27 05:28:18 -08:00
Sylvain Becker
47170d288e
Don't export SDL_AudioInit/Quit, use SDL_InitSubsystem instead ( #6912 )
...
* Don't export SDL_AudioInit/Quit, use SDL_InitSubsystem instead
* Update README
Co-authored-by: Sam Lantinga <slouken@libsdl.org>
2022-12-27 05:22:22 -08:00
Sylvain
3fb0c8b54a
Remove/Rename SDL_FreeWAV() to SDL_free()
2022-12-27 05:14:52 -08:00
Ozkan Sezer
29ba5f5d64
SDL_thread.h: fix beginthread param of SDL_CreateThreadWithStackSize for win32
2022-12-27 00:10:00 +03:00
Vincent Hamm
5410d361f7
Fix SDL_CreateThreadWithStackSize not passing staacksize with win32 static api
...
(cherry picked from commit 68073c627684ba35c113d0e128af15b5191b42d6)
2022-12-26 11:24:17 -08:00
Sam Lantinga
63724c113b
Removed the vi format comments from the source
...
Vim users can use the [editorconfig plugin](https://github.com/editorconfig/editorconfig-vim ) to automatically set tab spacing for the SDL coding style.
Fixes https://github.com/libsdl-org/SDL/issues/6903
2022-12-26 11:17:23 -08:00
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