From 67abc25311d9dc7d12b28d07aaa37fcaf9b5fee5 Mon Sep 17 00:00:00 2001 From: Krow Savcik Date: Sun, 11 Feb 2024 00:22:58 +0200 Subject: fix some warnings and compilation errors --- src/cdraw.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/cdraw.c') diff --git a/src/cdraw.c b/src/cdraw.c index 25c0dba..74335d4 100644 --- a/src/cdraw.c +++ b/src/cdraw.c @@ -10,9 +10,6 @@ #include "palette.h" #include "ui.h" -/* macros */ -#define LENGTH(X) (sizeof X / sizeof X[0]) - typedef struct { SDL_Keymod mod; SDL_Keycode sym; @@ -77,7 +74,7 @@ main_window_init(const char *s) return 1; } - ren = SDL_CreateRenderer(win, -1, 0); + ren = SDL_CreateRenderer(win, -1, SDL_RENDERER_PRESENTVSYNC); if (ren == NULL) { printf("SDL_CreateRenderer failed: %s\n", SDL_GetError()); return 1; -- cgit v1.2.3