Sam Lantinga
5970311353
Fixed build using clang-cl on Windows
2023-01-25 14:46:09 -08:00
Ozkan Sezer
3bf86c0eca
cmake: addititonal check for visibility attributes.
...
makes sure to detect unsupported configurations especially with new gcc
versions.
2023-01-26 01:32:32 +03:00
Sam Lantinga
13087405e0
Fixed clang documentation warnings
...
Don't warn about \threadsafety, which was added as custom documentation for SDL functions
Also removed -Wdocumentation-unknown-command, since that triggers on the e-mail addresses in the generated wayland protocol headers.
2023-01-25 14:25:13 -08:00
Anonymous Maarten
4ec3a5ac27
cmake: only add <LANG>_VISIBILITY_PRESET properties when compiler supports -fvisibility=
2023-01-25 22:27:47 +01:00
Sam Lantinga
a37f2aed7e
Hook up Android_ScreenDensity to convert pixels to screen coordinates on Android
...
Fixes https://github.com/libsdl-org/SDL/issues/7149
2023-01-25 13:06:42 -08:00
Sam Lantinga
9bbc402b81
Take the display scale into account in SDL_GetWindowSizeInPixels()
2023-01-25 13:06:42 -08:00
Sam Lantinga
162e40c982
Use densityDpi instead of density to more closely match what the UI scale is
2023-01-25 13:06:42 -08:00
Sam Lantinga
6dc135413a
Create a static SDL_test library on Android
2023-01-25 13:06:42 -08:00
Anonymous Maarten
330ad80014
cocci: fix game pad event types
2023-01-25 22:02:31 +01:00
Ryan C. Gordon
79cca812cb
include: make SDL_RenderPresent thread safety notes less verbose.
...
Reference Issue #7140 .
2023-01-25 13:15:34 -05:00
SDL Wiki Bot
43e3daace3
Sync SDL3 wiki -> header
2023-01-25 18:02:19 +00:00
Ryan C. Gordon
197340ea1c
Sync wiki -> headers.
2023-01-25 13:01:40 -05:00
Ryan C. Gordon
01cba48d18
wikiheaders: Add a `\threadsafety` tag to document threading details.
...
Reference Issue #7140 .
2023-01-25 12:59:25 -05:00
Sylvain
73dc327c84
Android get the display Density
2023-01-25 09:28:21 -08:00
Sam Lantinga
6a27188023
SDL_DisplayMode now represents physical pixels and has added a display scaling factor
...
Work in progress on https://github.com/libsdl-org/SDL/issues/7134
2023-01-25 09:26:59 -08:00
Sam Lantinga
a1e101e898
Fixed formatting for Haiku cc files
2023-01-25 03:03:41 -08:00
Sam Lantinga
6240252736
Updated documentation with the SDL_WINDOW_ALLOW_HIGHDPI flag removal
2023-01-25 01:28:37 -08:00
Sam Lantinga
4696c9556b
SDL 3.0 is going to be high DPI aware and officially separates screen… ( #7145 )
...
* SDL 3.0 is going to be high DPI aware and officially separates screen coordinates from client pixel area
The public APIs to disable high DPI support have been removed
Work in progress on https://github.com/libsdl-org/SDL/issues/7134
2023-01-25 01:23:17 -08:00
Sylvain
78cc95e34e
Rename internal GetDisplayDPI to GetDisplayPhysicalDPI
2023-01-25 00:04:00 -08:00
Sylvain
724d92fd65
Rename SDL_GetDisplayDPI to SDL_GetDisplayPhysicalDPI
...
to avoid confusion with logical DPI
2023-01-25 00:04:00 -08:00
Sam Lantinga
d496d187c5
Document that the pitch value may be zero for surfaces that will be filled in by the application later.
...
Also verify that the pitch isn't zero for surfaces with valid pixels
Fixes https://github.com/libsdl-org/SDL/issues/7143
2023-01-24 22:51:16 -08:00
Ryan C. Gordon
e3bada6fbd
wikiheaders: We never updated the config when we moved to include/SDL3. :O
2023-01-24 19:42:36 -05:00
Anonymous Maarten
ecffa93f39
ci: test vita piglet/pvr gles support
...
ci: configure gl4es4vita
ci: test gles on pib AND pvr
2023-01-25 00:23:05 +01:00
Anonymous Maarten
edf8db0466
cmake: removed unused code
2023-01-25 00:23:05 +01:00
Anonymous Maarten
5f995579e9
vita: add missing static libraries for using gles with pib
2023-01-25 00:23:05 +01:00
Anonymous Maarten
bb3a60bce5
cmake: move include(sdlfind.cmake) to main cmake script
2023-01-25 00:23:05 +01:00
Anonymous Maarten
3e3debf9de
vita: allow GLES support without GL support
2023-01-25 00:23:05 +01:00
Anonymous Maarten
3cb819ac48
vita: fix PVR_PSP2 (GLES) + gl4es4fita (GL)
2023-01-25 00:23:05 +01:00
Anonymous Maarten
ec3234ea21
editorconfig: trim trailing spaces from yml's
2023-01-25 00:23:05 +01:00
Sam Lantinga
14eb8db152
Fixed build
2023-01-24 14:01:01 -08:00
Sam Lantinga
a06a593aa6
Renamed SDL_GetGamepadNumTouchpads and SDL_GetGamepadNumTouchpadFingers to match the new convention
2023-01-24 13:47:30 -08:00
Jesse Chounard
fcf5b99068
Update vsproj search paths ( libsdl-org/SDL#7139 )
2023-01-24 13:08:12 -08:00
Ozkan Sezer
58e8cf599c
README-migration.md: fix SDL_WINDOWEVENT_CLOSE renamed name.
...
SDL_EVENT_WINDOW_CLOSE_REQUESTED, not SDL_EVENT_WINDOW_CLOSE.
2023-01-24 20:05:50 +03:00
Sylvain
052b14eb65
Add SDL_ConvertAudioSamples() helper function
2023-01-24 08:26:09 -08:00
Sam Lantinga
7b50bae524
Renamed SDL events for clarity
...
Fixes https://github.com/libsdl-org/SDL/issues/6877
2023-01-24 07:26:48 -08:00
Lokathor
74697bc351
group init flag defines into an enum ( #7137 )
2023-01-24 06:04:43 +00:00
ds-sloth
d020dd89ba
Support MIN/MAX blend on opengles2
2023-01-23 06:11:36 -08:00
Sam Lantinga
b6646f4de5
Use nanosecond timestamp for sensors (thanks @1bsyl!)
2023-01-23 05:34:24 -08:00
Frank Praznik
34bb0735d8
video: Don't resize moved fullscreen windows if the display mode switch failed
...
If an exclusive fullscreen window is moved between displays, SDL_UpdateFullscrrenMode can kick the window out of fullscreen if the display onto which it was moved doesn't have a matching video mode. Check the return code and clear the fullscreen flag and skip the resize if the window is no longer fullscreen.
2023-01-22 14:00:54 -08:00
Frank Praznik
8f8746cc1b
video: Return an error on failure to set the video mode
...
If SDL_UpdateFullscreenMode() fails to find a matching mode for the window, it will restore the window to its previous state, but still returns a success code of 0. Return an error code of -1 if no matching display mode can be found.
2023-01-22 14:00:54 -08:00
David Carlier
b379c910d4
SDL_CPUPauseInstruction RISCV-64 version proposal.
2023-01-22 13:58:59 -08:00
ds-sloth
38697e832a
Support MIN/MAX blend on OpenGL + ES
2023-01-22 13:49:44 -08:00
Sylvain
b1f365374b
Add code snipped to migrate from AudioCVT interface
2023-01-22 22:22:50 +01:00
Sylvain
cb01b35c4e
testresample.c: use SDL_DestroyAudioStream()
2023-01-22 22:22:50 +01:00
Anonymous Maarten
0770c55e8d
cocci: remove SDL_INIT_NOPARACHUTE
2023-01-22 20:14:35 +01:00
Anonymous Maarten
967ebd78e6
cocci: also fix up SDL_CreateRenderer calls with non-default render indices
2023-01-22 20:04:40 +01:00
Sam Lantinga
9c8642ded9
Removed SDL_INIT_NOPARACHUTE
...
Fixes https://github.com/libsdl-org/SDL/issues/7121
2023-01-22 09:14:12 -08:00
Sylvain
e4fdf42097
Update README-migration.md
2023-01-22 11:31:30 -05:00
Sylvain
bd793b6d75
Update testresample.c
2023-01-22 11:31:30 -05:00
Sylvain
6ad51558d4
Update testaudiostream_audio.c
2023-01-22 11:31:30 -05:00