Skip to content

Commit

Permalink
Remove access to the SDL_INIT_NOPARACHUTE option
Browse files Browse the repository at this point in the history
It is ignored by SDL2 and only kept for compatibility purposes.
We don't need to worry about that, so removing it.
  • Loading branch information
essen committed Oct 17, 2015
1 parent 24415de commit 456e3cc
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion c_src/esdl2.h
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@
A(mouse_wheel) \
A(moved) \
A(no_battery) \
A(no_parachute) \
A(none) \
A(num) \
A(on_battery) \
Expand Down
3 changes: 1 addition & 2 deletions c_src/sdl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion src/sdl.erl
Original file line number Diff line number Diff line change
Expand Up @@ -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() ->
Expand Down

0 comments on commit 456e3cc

Please sign in to comment.