diff options
author | Krow Savcik <krow@savcik.xyz> | 2024-02-11 00:22:58 +0200 |
---|---|---|
committer | Krow Savcik <krow@savcik.xyz> | 2024-02-11 00:22:58 +0200 |
commit | 67abc25311d9dc7d12b28d07aaa37fcaf9b5fee5 (patch) | |
tree | 8f2a01b9c06168f538edbf9d99dba312215ea4ef /src/cdraw.c | |
parent | 984700a66faac957ee8e0b7b3415587665aa6fbd (diff) |
fix some warnings and compilation errors
Diffstat (limited to 'src/cdraw.c')
-rw-r--r-- | src/cdraw.c | 5 |
1 files changed, 1 insertions, 4 deletions
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; |