accelerated :)

This commit is contained in:
sam-astro 2022-01-13 10:06:36 -05:00 committed by GitHub
parent d2ecc63988
commit 90ce2e5dc3
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);
gRenderer = SDL_CreateRenderer(gWindow, -1, 0, SDL_RENDERER_ACCELERATED);
//Get window surface
gScreenSurface = SDL_GetWindowSurface(gWindow);