aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2015-10-18 00:08:18 +0200
committerLoïc Hoguin <[email protected]>2015-10-18 00:08:18 +0200
commit456e3ccc01e658dce6a43948e8b995d5b432ca80 (patch)
tree4c4f93c868f051c512cd300b112d928eaa00d2af
parent24415dee3b150e33c8c0dbcea864c63997ec2c98 (diff)
downloadesdl2-456e3ccc01e658dce6a43948e8b995d5b432ca80.tar.gz
esdl2-456e3ccc01e658dce6a43948e8b995d5b432ca80.tar.bz2
esdl2-456e3ccc01e658dce6a43948e8b995d5b432ca80.zip
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.
-rw-r--r--c_src/esdl2.h1
-rw-r--r--c_src/sdl.c3
-rw-r--r--src/sdl.erl2
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() ->