From 456e3ccc01e658dce6a43948e8b995d5b432ca80 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Sun, 18 Oct 2015 00:08:18 +0200 Subject: [PATCH] Remove access to the SDL_INIT_NOPARACHUTE option It is ignored by SDL2 and only kept for compatibility purposes. We don't need to worry about that, so removing it. --- c_src/esdl2.h | 1 - c_src/sdl.c | 3 +-- src/sdl.erl | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/c_src/esdl2.h b/c_src/esdl2.h index 75055d4..6e69cff 100644 --- a/c_src/esdl2.h +++ b/c_src/esdl2.h @@ -75,7 +75,6 @@ A(mouse_wheel) \ A(moved) \ A(no_battery) \ - A(no_parachute) \ A(none) \ A(num) \ A(on_battery) \ diff --git a/c_src/sdl.c b/c_src/sdl.c index 02e8150..ba5d021 100644 --- a/c_src/sdl.c +++ b/c_src/sdl.c @@ -22,8 +22,7 @@ F(haptic, SDL_INIT_HAPTIC) \ F(game_controller, SDL_INIT_GAMECONTROLLER) \ F(events, SDL_INIT_EVENTS) \ - F(everything, SDL_INIT_EVERYTHING) \ - F(no_parachute, SDL_INIT_NOPARACHUTE) + F(everything, SDL_INIT_EVERYTHING) NIF_LIST_TO_FLAGS_FUNCTION(list_to_init_flags, Uint32, INIT_FLAGS) diff --git a/src/sdl.erl b/src/sdl.erl index b89de68..be0ffeb 100644 --- a/src/sdl.erl +++ b/src/sdl.erl @@ -26,7 +26,7 @@ -export_type([error/0]). -type subsystem() :: timer | audio | video | joystick | haptic - | game_controller | events | everything | no_parachute. + | game_controller | events | everything. -spec start() -> ok | error(). start() ->