This commit is contained in:
sam-astro 2022-01-13 10:12:12 -05:00 committed by GitHub
parent d6eb1cd505
commit 62005b90b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -733,7 +733,7 @@ int initGraphics(std::string windowTitle, int width, int height)
TTF_Init();
gWindow = SDL_CreateWindow(windowTitle.c_str(), 40, 40, WINDOW_WIDTH, WINDOW_HEIGHT, SDL_WINDOW_SHOWN);
gRenderer = SDL_CreateRenderer(gWindow, -1, 0, SDL_RENDERER_ACCELERATED);
gRenderer = SDL_CreateRenderer(gWindow, -1, 0, SDL_RENDERER_ACCELERATED | SDL_RENDERER_PRESENTVSYNC);
//Get window surface
gScreenSurface = SDL_GetWindowSurface(gWindow);