aboutsummaryrefslogtreecommitdiff
path: root/src/cdraw.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cdraw.c')
-rw-r--r--src/cdraw.c5
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;