Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restore support for the Nokia N-Gage #12148

Open
wants to merge 101 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
101 commits
Select commit Hold shift + click to select a range
485ebcf
[Nokia N-Gage] Add CMake build configuration.
mupfdev Jan 31, 2025
b4e0719
[Nokia N-Gage] Add stub application: The purpose of this file is to v…
mupfdev Jan 31, 2025
c0d86c2
[Nokia N-Gage] Add build configuration and platform-specific defines.
mupfdev Jan 31, 2025
92abc61
[Nokia N-Gage] Add audio driver implementation.
mupfdev Jan 31, 2025
ecb87c8
[Nokia N-Gage] Add rendering back-end.
mupfdev Jan 31, 2025
3de97da
[Nokia N-Gage] Add video driver implementation.
mupfdev Jan 31, 2025
c0abc89
[Nokia N-Gage] Add SDL main application entry point.
mupfdev Jan 31, 2025
a5bc5fe
[Nokia N-Gage] Add platform-specific core functions that are used for…
mupfdev Jan 31, 2025
76e38ae
[Nokia N-Gage] Add functions related to locales and time.
mupfdev Jan 31, 2025
6b4349a
[Nokia N-Gage] Add file system related functions.
mupfdev Jan 31, 2025
5c6af04
[Nokia N-Gage] Add timer/counter functions.
mupfdev Jan 31, 2025
496b581
[Nokia N-Gage] Handle platform-specific edge cases.
mupfdev Jan 31, 2025
fb0b98d
Add missing include guard
mupfdev Jan 31, 2025
3f28146
[Nokia N-Gage] Add logging support.
mupfdev Jan 31, 2025
d221d75
[Nokia N-Gage] Add platform to SDL.c
mupfdev Jan 31, 2025
38f61ff
[Nokia N-Gage] Add missing SDL_TriggerBreakpoint() implementation to …
mupfdev Feb 1, 2025
e74821a
[Nokia N-Gage] Move compile definitions to the SDK's toolchain file.
mupfdev Feb 1, 2025
0e9bce5
[Nokia N-Gage] Remove redundant nullptr definition.
mupfdev Feb 1, 2025
305ae5e
[Nokia N-Gage] Update configuration after adding stdbool.h, stdint.h …
mupfdev Feb 1, 2025
99b2e2f
[Nokia N-Gage] Update guard as suggested by @madebr, this should fix CI
mupfdev Feb 1, 2025
206c7e2
[Nokia N-Gage] Remove redundant guard after adding minimal stdbool.h …
mupfdev Feb 1, 2025
24281fd
[Nokia N-Gage] Remove redundant guard after adding minimal inttypes.h…
mupfdev Feb 1, 2025
63693e3
Remove redundant guard
mupfdev Feb 1, 2025
5fffc51
[Nokia N-Gage] Fix audio deinit which caused an error message on exit…
mupfdev Feb 1, 2025
4952884
[Nokia N-Gage] Simplify/Fix focus handling; it is now possible to put…
mupfdev Feb 3, 2025
db41628
[Nokia N-Gage] Set initial focus to ETrue; this is not required on re…
mupfdev Feb 3, 2025
072b7c6
Fix platform name in comment.
mupfdev Feb 5, 2025
e4bf3e3
Fixed decoding 4-bit RLE encoded BMP files
slouken Feb 4, 2025
57d0a94
bmp: Removed debug printf call.
icculus Feb 4, 2025
356ca0d
Fixed memory leak looking up pen tool names
slouken Feb 5, 2025
9d3c7a1
Fixed potential double-free
slouken Feb 5, 2025
b948be8
[Nokia N-Gage] Add build configuration and platform-specific defines.
mupfdev Jan 31, 2025
649f540
[Nokia N-Gage] Remove toolchain setting from CMakeLists.txt; this sho…
mupfdev Feb 5, 2025
ea79507
[Nokia N-Gage] Remove redundant guard.
mupfdev Feb 5, 2025
60e31d5
[Nokia N-Gage] As suggested by @ccawley2011, SDL_EnableScreenSaver() …
mupfdev Feb 5, 2025
fdd85db
[Nokia N-Gage] Add external declaration to avoid compiler warning
mupfdev Feb 5, 2025
e18f854
[Nokia N-Gage] Remove unused NGAGE_QueueNoOp()
mupfdev Feb 5, 2025
b728754
[Nokia N-Gage] Move VideoBootStrap declaration where it belongs
mupfdev Feb 5, 2025
cc5852c
[Nokia N-Gage] Update README-ngage.md
mupfdev Feb 5, 2025
1ec7ce0
Add missing return value to NGAGE_SuspendScreenSaver().
mupfdev Feb 6, 2025
03b16f7
[Nokia N-Gage] Remove redundant code after cleaning up the native Sym…
mupfdev Feb 6, 2025
45d6032
[Nokia N-Gage] Update SDL_sysfilesystem.c as suggested by @ccawley2011
mupfdev Feb 8, 2025
627d190
[Nokia N-Gage] Update NGAGE_LockTexture as suggested in PR code review
mupfdev Feb 8, 2025
2615221
[Nokia N-Gage] Use proper locals for HK and Taiwan
mupfdev Feb 8, 2025
ce313ad
[Nokia N-Gage] ELangEnglish -> en_GB
mupfdev Feb 8, 2025
39eaf7e
[Nokia N-Gage] Remove redundant ssize_t definition. It now lives in s…
mupfdev Feb 9, 2025
9a2a64e
[Nokia N-Gage] Remove redundant external declarations, these had been…
mupfdev Feb 9, 2025
ab2de6d
[Nokia N-Gage] Fix SDL include in ngagetest.c
mupfdev Feb 9, 2025
9782847
Add missing include
mupfdev Feb 9, 2025
db09979
[Nokia N-Gage] Remove redundant vsnprintf definition, add platform-sp…
mupfdev Feb 9, 2025
69bb7ec
ci: add minimum N-Gage ci
madebr Feb 9, 2025
4b9ac32
Merge pull request #1 from madebr/ngage-minimum-ci
mupfdev Feb 9, 2025
69c364f
Memory Leak in WIN_CreateHCursor When CreateColorBitmap Fails
thouravi Feb 9, 2025
1fe20af
Update geometry renderer example
cfwalter Feb 9, 2025
782f3c9
Proper Resource Cleanup in WIN_UpdateWindowShape
thouravi Feb 9, 2025
f0954a7
joystick: Fix PS5 player LED hint change callback name
stenzek Feb 10, 2025
49a54c9
Added SDL_DEPS_SHARED option to control default dynamic loading of sh…
RubisetCie Feb 10, 2025
d78bfdc
pipewire: Ensure that the correct struct is used for enumeration APIs
Conan-Kudo Feb 10, 2025
38d9d69
Centered joystick axis values should be 0
slouken Feb 10, 2025
56f2fa2
Fix #12142 - the problem was if the size of the vertex buffer was exc…
danginsburg Feb 10, 2025
328331a
Don't return short waits from SDL_IOReady()
slouken Feb 10, 2025
aa6706c
Renamed "Dreamcast Controller Usb" to "DreamPort"
kosekmi Feb 10, 2025
68f972c
win32: Keep the window on the last maximized display when leaving ful…
Kontrabant Feb 10, 2025
bdaf8bc
Added SDL_PROP_SURFACE_HOTSPOT_X_NUMBER and SDL_PROP_SURFACE_HOTSPOT_…
slouken Feb 10, 2025
379228c
Sync SDL3 wiki -> header
SDLWikiBot Feb 10, 2025
03121bb
wayland: Scale-to-display mode requires both viewports and xdg-output…
Kontrabant Feb 10, 2025
c0c2be0
wayland: Don't set libdecor frame visibility before the first commit
Kontrabant Feb 10, 2025
26497af
Added support for Motion JPEG camera capture
slouken Feb 7, 2025
f8454d8
Remove functions not used when STBI_NO_PNG and STBI_NO_HDR are defined
slouken Feb 10, 2025
7aad0fc
Removed functions not used by SDL
slouken Feb 10, 2025
78c7e84
Removed stb_image.h from SDL
slouken Feb 11, 2025
09dba73
testcamera: added support for Motion JPEG camera frames
slouken Feb 11, 2025
25adfc5
Added support for SDL_PIXELFORMAT_ABGR8888 textures
slouken Feb 11, 2025
f5c375d
The 10-bit texture formats have alpha on Direct3D
slouken Feb 11, 2025
1b4b922
[GPU] D3D12 backend debug markers were being cut
Arcnor Feb 11, 2025
83cb34d
Removed the mapping for the Sanwa Supply JY-P76USV
slouken Feb 11, 2025
064e76c
Fixed the name of SDL_SYSWMEVENT
slouken Feb 11, 2025
4089ef7
x11: Apply the modifier state from key events
Kontrabant Feb 11, 2025
00f4978
updated the snake demo to be C++ compatible
captain0xff Feb 11, 2025
1289526
updated bytepusher demo to be C++ compatible
captain0xff Feb 11, 2025
1b19f62
Check for non-NULL icon for trays on Unix
Feb 10, 2025
d4287a0
Add missing integer texture formats to SDL_GPUTextureFormatTexelBlock…
coffeechriph Feb 11, 2025
dfd3ee8
Copy SDL2_SYSWMEVENT data into temporary memory for the event
slouken Feb 11, 2025
d2a1a1d
Added an internal hint "SDL_VIDEO_X11_XINPUT2" for sdl2-compat
slouken Feb 11, 2025
67a8059
audio/video: Skip preferred drivers when loading a driver on demand
Kontrabant Feb 11, 2025
16bc1c1
Refactored GameInput initialization
slouken Feb 12, 2025
ba54341
Fixed reporting hat positions for GameInput controllers
slouken Feb 12, 2025
890d939
Fixed continually resetting keyboard and mouse readings
slouken Feb 12, 2025
d1c99b7
Fixed SDL_GetNumGamepadTouchpads() returning 1 for a NULL gamepad
slouken Feb 12, 2025
372e70b
haiku: Fixed keyboard input.
icculus Feb 12, 2025
fe08d6b
Fix GTK tray icon without menu + lifetime
Feb 12, 2025
fd079ad
Sync SDL3 wiki -> header
SDLWikiBot Feb 13, 2025
46aac6f
Fixed wayland cursor use-after-free at shutdown
slouken Feb 13, 2025
38ffdb2
Document the "trace" log priority
slouken Feb 13, 2025
852e58c
Sync SDL3 wiki -> header
SDLWikiBot Feb 13, 2025
cf88cc2
SDL_GetRelativeMouseState(): Get relative mouse position also when re…
Sackzement Feb 13, 2025
1bec00e
Fixed Cursor Icon State for SYSTEM_CURSOR_PROGRESS
thouravi Feb 13, 2025
9fd9802
SDL_Get*Driver() functions: Set error message on failure
Sackzement Feb 13, 2025
f32fd6d
emscripten: Fixed unregistering of key event handlers
DutChen18 Feb 14, 2025
23522a0
Fixed motion events with TOOL_TYPE_UNKNOWN
slouken Feb 14, 2025
4d4af22
audio/video: Fix uninitialized field warnings
Kontrabant Feb 14, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fixed wayland cursor use-after-free at shutdown
  • Loading branch information
slouken authored and mupfdev committed Feb 15, 2025
commit 46aac6ffb589be5abd66d213a69f8273fee05894
7 changes: 7 additions & 0 deletions src/video/wayland/SDL_waylandmouse.c
Original file line number Diff line number Diff line change
Expand Up @@ -598,6 +598,13 @@ static SDL_Cursor *Wayland_CreateDefaultCursor(void)

static void Wayland_FreeCursorData(SDL_CursorData *d)
{
SDL_VideoDevice *vd = SDL_GetVideoDevice();
struct SDL_WaylandInput *input = vd->internal->input;

if (input->current_cursor == d) {
input->current_cursor = NULL;
}

// Buffers for system cursors must not be destroyed.
if (d->is_system_cursor) {
if (d->cursor_data.system.frame_callback) {
Expand Down