@@ 17,7 17,6 @@
#include "local.h"
#define ANIM_STEPS 10
-#define ANIM_DELAY 10
#define CELL_SIZE 32
#define DEFAULT_WIDTH 1280
#define DEFAULT_HEIGHT 960
@@ 832,8 831,8 @@ main(int argc, char** argv)
}
SDL_SetWindowTitle(window, WIN_TITLE);
- SDL_RenderSetVSync(renderer, 1);
SDL_SetHint(SDL_HINT_RENDER_SCALE_QUALITY, "1");
+ SDL_SetHintWithPriority(SDL_HINT_RENDER_VSYNC, "1", SDL_HINT_OVERRIDE);
load_textures();
if (argc > 1)
@@ 866,8 865,8 @@ main(int argc, char** argv)
redraw = 0;
}
- SDL_Delay(10);
}
+ SDL_Delay(10);
}
return 0;