Skip to content

Commit

Permalink
Only init required SDL subsystems
Browse files Browse the repository at this point in the history
  • Loading branch information
AMDmi3 committed Jan 30, 2014
1 parent c1627fd commit b1b0bfe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sdlengine.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ struct SDLEngine
{
SDLEngine()
{
if (SDL_Init(SDL_INIT_EVERYTHING) != 0) {
if (SDL_Init(SDL_INIT_VIDEO) != 0) {
throw std::runtime_error("SDL_Init");
}
if (SDL_ShowCursor(SDL_DISABLE) < 0) {
Expand Down

0 comments on commit b1b0bfe

Please sign in to comment.