changed literal to named constant

This commit is contained in:
Bob Polis 2020-11-11 17:22:45 +01:00
parent 4f9b66dc79
commit 24bed16090

View File

@ -87,7 +87,7 @@ Window::Window(const std::string& title) : _title {title} {
1600, 900,
SDL_WINDOW_RESIZABLE);
_w.reset(win);
_r.reset(SDL_CreateRenderer(win, -1, 0));
_r.reset(SDL_CreateRenderer(win, -1, SDL_RENDERER_ACCELERATED));
}
void Window::set_size(int w, int h) {