summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorkartofen <mladenovnasko0@gmail.com>2023-04-11 00:03:29 +0300
committerkartofen <mladenovnasko0@gmail.com>2023-04-11 00:03:29 +0300
commita058f92f77438f7df07fa0e557595c620bce8f02 (patch)
tree8351621e60e907e18656be28328f7ac5147a4471 /src/main.c
parent878726dbc3fd8803f436ee45b1e3ccff5693de24 (diff)
web build works
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/main.c b/src/main.c
index 16d127e..432d26f 100644
--- a/src/main.c
+++ b/src/main.c
@@ -36,11 +36,6 @@ 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;
@@ -59,6 +54,8 @@ int main(void)
log_critical(LOG_VIDEO, "SDL_GetWindowSurface %s", SDL_GetError());
goto exit;
}
+
+ SDL_SetRelativeMouseMode(SDL_TRUE);
// --------------------------------------------- //
if(map_load(&map, "files/map_clear.txt"))