X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Fgame.c;h=7e59f094b5dccccd2476bb10a8a54adf6f105bdb;hb=6f79ea1241a2e339a261680c5c2b9de07cb91f18;hp=f9bba030609eb8548f6effee86b79fedfbd7d27b;hpb=78dfd4f4419a5739b4def9a8b3b1b9e4b6fe5c38;p=nothing.git diff --git a/src/game.c b/src/game.c index f9bba030..7e59f094 100644 --- a/src/game.c +++ b/src/game.c @@ -105,7 +105,9 @@ Game *create_game(const char *level_folder, SDL_BLENDFACTOR_ONE, SDL_BLENDFACTOR_ZERO, SDL_BLENDOPERATION_ADD)) < 0) { - log_warn("SDL error: %s\n", SDL_GetError()); + log_warn("SDL error while setting blending mode for `%s': %s\n", + cursor_style_tex_files[style], + SDL_GetError()); } } @@ -411,7 +413,8 @@ int game_event(Game *game, const SDL_Event *event) } break; case SDL_KEYDOWN: { - if (event->key.keysym.sym == SDLK_q && event->key.keysym.mod & KMOD_CTRL) { + if ((event->key.keysym.sym == SDLK_q && event->key.keysym.mod & KMOD_CTRL) || + (event->key.keysym.sym == SDLK_F4 && event->key.keysym.mod & KMOD_ALT)) { game_switch_state(game, GAME_STATE_QUIT); return 0; }