Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT

(cherry picked from commit 3deefa6b43)
This commit is contained in:
Sam Lantinga
2024-01-07 14:20:16 -08:00
parent 8c4e4d57b3
commit 5e12e4b813
2 changed files with 13 additions and 12 deletions

View File

@@ -187,9 +187,10 @@ void SDL_DBus_Quit(void)
dbus.connection_unref(dbus.session_conn);
}
SDL_bool q = SDL_GetHintBoolean(SDL_HINT_SHUTDOWN_DBUS_ON_QUIT, SDL_FALSE);
if (q == SDL_TRUE && dbus.shutdown) {
dbus.shutdown();
if (SDL_GetHintBoolean(SDL_HINT_SHUTDOWN_DBUS_ON_QUIT, SDL_FALSE)) {
if (dbus.shutdown) {
dbus.shutdown();
}
}
SDL_zero(dbus);