Skip to content

Commit

Permalink
Update main.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
albin-johansson committed Oct 29, 2023
1 parent 12d2b34 commit 5de0b52
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/main/src/tactile/main/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ auto main(const int argc, char* argv[]) -> int
return EXIT_FAILURE;
}

const ScopeGuard sdl_guard {[] { SDL_Quit(); }};

SDL_SetHint(SDL_HINT_APP_NAME, "Tactile");
SDL_SetHint(SDL_HINT_MOUSE_TOUCH_EVENTS, "1");
SDL_SetHint(SDL_HINT_RENDER_SCALE_QUALITY, "nearest");
Expand Down

0 comments on commit 5de0b52

Please sign in to comment.