From 18dc7b8a38f646bc09fa200b2b99618fad05505a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Fri, 11 Oct 2024 22:57:39 +0200 Subject: [PATCH] Platform: adapt SDL doc links to existence of SDL3. --- src/Magnum/Platform/Sdl2Application.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Magnum/Platform/Sdl2Application.h b/src/Magnum/Platform/Sdl2Application.h index ad9a18cad..31a96ecae 100644 --- a/src/Magnum/Platform/Sdl2Application.h +++ b/src/Magnum/Platform/Sdl2Application.h @@ -293,7 +293,7 @@ SDL by default prevents the computer from powering off the or screen going to sleep. While possibly useful for game-like use cases, it's generally undesirable for regular applications. @ref Sdl2Application turns this behavior off. You can restore SDL's default behavior by disabling the -[corresponding SDL hint](https://wiki.libsdl.org/CategoryHints) through an +[corresponding SDL hint](https://wiki.libsdl.org/SDL2/CategoryHints) through an environment variable or through @cpp SDL_SetHint() @ce from your application. @code{.sh} @@ -311,14 +311,14 @@ not terminate it either and you'd have to forcibly kill it instead. When using SDL >= 2.0.4, @ref Sdl2Application turns this behavior off, making @ref exitEvent() behave consistently with other application implementations such as @ref GlfwApplication. You can turn this behavior back on by enabling -the [corresponding SDL hint](https://wiki.libsdl.org/SDL_HINT_NO_SIGNAL_HANDLERS) +the [corresponding SDL hint](https://wiki.libsdl.org/SDL2/SDL_HINT_NO_SIGNAL_HANDLERS) through an environment variable: @code{.sh} SDL_NO_SIGNAL_HANDLERS=1 ./your-app @endcode -See also the [SDL Wiki](https://wiki.libsdl.org/SDL_EventType#SDL_QUIT) for +See also the [SDL Wiki](https://wiki.libsdl.org/SDL2/SDL_EventType#SDL_QUIT) for details. @subsection Platform-Sdl2Application-platform-specific-linux Linux specifics @@ -327,7 +327,7 @@ SDL by default attempts to disable compositing, which may cause ugly flickering for non-fullscreen apps (KWin, among others, is known to respect this setting). When using SDL >= 2.0.8, @ref Sdl2Application turns this behavior off, keeping the compositor running to avoid the flicker. You can turn this behavior back on -by enabling the [corresponding SDL hint](https://wiki.libsdl.org/CategoryHints) +by enabling the [corresponding SDL hint](https://wiki.libsdl.org/SDL2/CategoryHints) through an environment variable or through @cpp SDL_SetHint() @ce from your application.