Browse Source

Platform: adapt SDL doc links to existence of SDL3.

pull/419/merge
Vladimír Vondruš 2 years ago
parent
commit
18dc7b8a38
  1. 8
      src/Magnum/Platform/Sdl2Application.h

8
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 sleep. While possibly useful for game-like use cases, it's generally
undesirable for regular applications. @ref Sdl2Application turns this behavior undesirable for regular applications. @ref Sdl2Application turns this behavior
off. You can restore SDL's default behavior by disabling the 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. environment variable or through @cpp SDL_SetHint() @ce from your application.
@code{.sh} @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 SDL >= 2.0.4, @ref Sdl2Application turns this behavior off, making
@ref exitEvent() behave consistently with other application implementations @ref exitEvent() behave consistently with other application implementations
such as @ref GlfwApplication. You can turn this behavior back on by enabling 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: through an environment variable:
@code{.sh} @code{.sh}
SDL_NO_SIGNAL_HANDLERS=1 ./your-app SDL_NO_SIGNAL_HANDLERS=1 ./your-app
@endcode @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. details.
@subsection Platform-Sdl2Application-platform-specific-linux Linux specifics @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). 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 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 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 through an environment variable or through @cpp SDL_SetHint() @ce from your
application. application.

Loading…
Cancel
Save