From 878726dbc3fd8803f436ee45b1e3ccff5693de24 Mon Sep 17 00:00:00 2001 From: kartofen Date: Mon, 10 Apr 2023 23:34:22 +0300 Subject: actually works --- src/main.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index 326286c..16d127e 100644 --- a/src/main.c +++ b/src/main.c @@ -36,6 +36,11 @@ int main(void) SDL_Window *window = NULL; map_t map = {0}; + if(SDL_ShowCursor(SDL_DISABLE) < 0) { + log_error(LOG_INPUT, "SDL_ShowCursor: %s", SDL_GetError()); + } + + if(SDL_Init(SDL_INIT_VIDEO) != 0) { log_critical(LOG_VIDEO, "SDL_Init: %s", SDL_GetError()); goto exit; -- cgit v1.2.3