Commit graph

22023 commits

Author SHA1 Message Date
Ryan C. Gordon
999b1267a5
opengles: remove Pandora support code.
Co-authored-by: Cameron Cawley <ccawley2011@gmail.com>
2026-05-25 14:55:31 -04:00
Ryan C. Gordon
a94aaf55ca
opengles: Fix texture rendering.
This gets the address mode and scaling correct. Fixes demo-bytepusher!
2026-05-25 14:55:30 -04:00
Ryan C. Gordon
10c5b5e8e9
opengles: Fix setting drawing color. 2026-05-25 14:55:30 -04:00
Ryan C. Gordon
664994877d
opengles: Set renderer name during creation.
Otherwise `./testsprite --info render` will crash dereferencing a NULL pointer.
2026-05-25 14:55:29 -04:00
Sylvain
7ff1a30b42
Update SDL_render_gles for SDL3 2026-05-25 14:55:29 -04:00
Sylvain
732ad11654
Update SDL_build_config.h.cmake 2026-05-25 14:55:29 -04:00
Sylvain
e6108054ac
Update sdlchecks.cmake 2026-05-25 14:55:28 -04:00
Sylvain
f0053b8a34
Update CMakeLists.txt 2026-05-25 14:55:28 -04:00
Sylvain
c85cc01cce
Add GLES1 driver var entry in src/render/ 2026-05-25 14:55:28 -04:00
Sylvain
17b82ce413
Add SDL2 opengles renderer 2026-05-25 14:55:27 -04:00
SDL Wiki Bot
548057693c Sync SDL3 wiki -> header
[ci skip]
2026-05-25 18:05:17 +00:00
SDL Wiki Bot
259207eb23 Sync SDL3 wiki -> header
[ci skip]
2026-05-25 18:05:03 +00:00
Anonymous Maarten
32c19b9dc8 Fix buffer-overflow access in process_testStdinToStdout
Backing memory of SDL_IOFromDynamicMem is not null-terminated.
2026-05-25 17:29:58 +02:00
Anonymous Maarten
dcf063178c Use pragma to ignore deprecated integer-to-ascii CRT conversion functions 2026-05-25 17:26:09 +02:00
Anonymous Maarten
08e338f45c _uitoa does not exist 2026-05-25 17:26:09 +02:00
Anonymous Maarten
55388abb34 Revert "SDL_itoa(): use _itoa_s(), not _ltoa_s()"
This reverts commit ae07e32269.
This reverts commit 33c9f1a70a.
2026-05-25 17:26:09 +02:00
Carlo Bramini
5e1d8b8a6f Add CYGWIN support for DLL library check
(from https://github.com/libsdl-org/SDL_image/pull/747)
2026-05-25 17:15:37 +03:00
Ozkan Sezer
29f7f08261 pdate openxr headers from khronos. 2026-05-24 18:40:50 +03:00
Cameron Cawley
f162c49dc1 Use SDL_PIXELFORMAT_INDEX8 for the debug font atlas 2026-05-24 08:00:21 -07:00
Ryan C. Gordon
6c55fad411
examples/demo/04-bytepusher: go back to showing help text on load failures.
If the VM was already running, and then a file failed to open at all (a
directory was dropped on the window, etc), this wouldn't go back to showing
the help text.
2026-05-23 23:56:48 -04:00
Ryan C. Gordon
800f347e5e
examples/demo/04-bytepusher: Remove render target.
This doesn't need a render target to function. The comment suggested it was
needed to make debug text look better when scaled, but maybe logical
presentation used to do linear scaling exclusively at the time?
2026-05-23 23:56:18 -04:00
Ozkan Sezer
ae07e32269 SDL_itoa(): use _itoa_s(), not _ltoa_s()
typo introduced by commit 33c9f1a70a
2026-05-23 20:11:10 +03:00
Frank Praznik
0a96d47599
wayland: Remove focus references when a pointer capture ends on a subsurface
The core mouse code will unfocus the window when a capture ends outside the window boundaries, but the backend still needs to update the internal focus references.
2026-05-23 12:20:30 -04:00
0xDEADCADE
3626598675 Remove CenterPad and RightStick from Steam Controller (2015) internal state struct
These values are never used for the Steam Controller (2015), as it does not physically have these inputs.
2026-05-23 07:51:03 -07:00
Frank Praznik
e7b238a6ed
Fix casting errors 2026-05-22 12:30:11 -04:00
Frank Praznik
5f8eb44541
wayland: Handle captured pointer movements over a subsurface
Some compositors will send pointer enter/leave event while moving between surfaces that are part of the same window while mouse capture is active. Maintain window focus in this case, and adjust the coordinates relative to the content surface by the subsurface offset, if necessary.
2026-05-22 11:47:23 -04:00
Ryan C. Gordon
9fe200c215
examples/renderer/20-blending: Note when a blend mode is unsupported. 2026-05-22 10:37:15 -04:00
Ryan C. Gordon
39be8a703f
examples/renderer/20-blending: center alpha and instructional text.
Otherwise, it tends to get lost behind the "Source Code" tab in the web
builds, if the browser window is too small.
2026-05-22 10:37:14 -04:00
Jason Millard
290f0c831f iOS: Fix SDL_EVENT_DROP_FILE lost on cold start from URL open 2026-05-22 07:16:43 -07:00
Bitwolf
2f13731d23 Update Famicom controllers to a more user friendly name. 2026-05-22 07:15:17 -07:00
Vittorio Romeo
7f03da9588 emscripten: dedupe keyboard event listeners across multiple windows 2026-05-22 07:11:10 -07:00
kholo
2bb6df90ad Ignore Huion Tablet Kamvas Pro 22 2026-05-22 07:05:57 -07:00
Anonymous Maarten
6243fa2ffd Fix -Wempty-body warnings in SDL_malloc.c
ABORT is used in the assert macro.
2026-05-21 22:50:32 +02:00
Anonymous Maarten
33c9f1a70a Fix -Wdeprecated-declarations warnings
An alternative could be to define _CRT_SECURE_NO_WARNINGS
2026-05-21 22:50:32 +02:00
Sam Lantinga
6b4ae68460 android: fixed a possible joystick-related deadlock on application termination 2026-05-21 12:20:03 -07:00
Sam Lantinga
fe1918a47f Fixed build 2026-05-21 10:05:20 -07:00
Sam Lantinga
13f91a67fc Fixed Ipega controllers being ignored in keyboard mode (thanks @AntTheAlchemist!) 2026-05-21 09:56:42 -07:00
Sam Lantinga
3545bad589 Process repeated joystick key events on Android
This prevents them from being interpreted as keyboard keys by the Java code, and if internally we are treating them as keyboard keys, they'll be repeated properly.

Fixes https://github.com/libsdl-org/SDL/issues/15664
2026-05-21 06:53:17 -07:00
Sam Lantinga
516f4a0bd5 Added notes about faster crc32() options 2026-05-20 17:32:01 -07:00
Sam Lantinga
47c8dcc968 android: handle sensor registration synchronized in one place 2026-05-20 15:55:24 -07:00
Sam Lantinga
19d73016e8 Fixed a rare crash on Raspberry Pi when creating a window 2026-05-20 15:11:09 -07:00
Sam Lantinga
0dbd9d2a65 Fixed a rare crash on Raspberry Pi when creating a window 2026-05-20 14:56:54 -07:00
Frank Praznik
ef9a5b7040 x11: Ignore slave button presses when the window lacks keyboard focus
XInput2 can send slave button presses before FocusIn events, which can confuse the click-through suppression logic. A window must have keyboard focus to grab the mouse anyway, so ignore slave presses when lacking keyboard focus.
2026-05-20 13:05:38 -04:00
Frank Praznik
8371c09aa7 x11: Reject click-through button events based on serial
XInput2 may send mouse buttons presses on both the master and slave devices, and the click-through button event should be ignored on both if required.
2026-05-20 13:05:38 -04:00
Ryan C. Gordon
9a56bc66b5
assert: fixed compiler warning with LLVM + x86_64-pc-windows-msvc target.
Fixes #15578.
2026-05-20 13:02:41 -04:00
Ryan C. Gordon
f8dab6ad51
README-migration: Note that render target support is not universally available.
Fixes #15474.
2026-05-20 12:51:41 -04:00
Ryan C. Gordon
d8f42ee069
examples/renderer/20-blending: Make thumbnail/onmouseover match other examples. 2026-05-20 00:42:57 -04:00
Ryan C. Gordon
8fe1d7faec
examples/save-rendering-to-bitmaps: Dump alpha channel.
examples/renderer/20-blending triggered this: the renderer's framebuffer has
an alpha channel, even if the window itself doesn't, so we ended up with some
weird rendering in the onmouseover.webp when I rebuilt it.
2026-05-20 00:40:25 -04:00
Vittorio Romeo
35098e927c emscripten: don't dispatch user input to hidden windows 2026-05-19 21:15:22 -07:00
Ahmed Lyas
c9e2e732b6
examples: Add blending example (#15657) 2026-05-19 21:05:23 -07:00