Permalink
Browse files

SDL_Init not everything

  • Loading branch information...
1 parent a895764 commit b01e9ab887236a46621ea088858a0c512e33500c @singpolyma committed Nov 13, 2012
Showing with 1 addition and 2 deletions.
  1. +1 −2 st.c
View
@@ -2241,8 +2241,7 @@ sdlinit(void) {
dc.font = dc.ifont = dc.bfont = dc.ibfont = NULL;
- // TODO: not everything
- if(SDL_Init(SDL_INIT_EVERYTHING) == -1) {
+ if(SDL_Init(SDL_INIT_VIDEO|SDL_INIT_EVENTTHREAD) == -1) {
fprintf(stderr,"Unable to initialize SDL: %s\n", SDL_GetError());
exit(EXIT_FAILURE);
}

0 comments on commit b01e9ab

Please sign in to comment.