mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-04-12 11:41:33 +02:00
cf4edb73e7335a55a0fa52cca8414b2e2ef4be6c
The various SDL_Tray*DBus structs are supposed to be backend-specific subclasses of the corresponding SDL_Tray* structs. This is done by making the first member be a 'parent' of that type, so that, e.g., SDL_TrayDriverDBus can be cast into an SDL_TrayDriver. However, these '_parent' members were mistakenly removed in commitce90105cf8("Clean up the tray D-Bus code"), as they're never directly referenced. Reinstate these variables, and instead of casting SDL_Tray*DBus to SDL_Tray* on creation, reference the _parent member directly, so that any tooling will know the variable is indeed used. In addition, rename _parent to class_parent, to make its purpose more obvious. Fixes:ce90105cf8("Clean up the tray D-Bus code")
Simple DirectMedia Layer (SDL for short) is a cross-platform library designed to make it easy to write multi-media software, such as games and emulators.
You can find the latest release and additional information at: https://www.libsdl.org/
Installation instructions and a quick introduction is available in INSTALL.md
This library is distributed under the terms of the zlib license, available in LICENSE.txt.
Enjoy!
Sam Lantinga (slouken@libsdl.org)
Languages
C
85.8%
C++
6.6%
Objective-C
3.4%
CMake
1.6%
Perl
0.7%
Other
1.6%