working on screen clear

This commit is contained in:
Timothy O'Barr
2026-09-25 16:52:06 -05:00
parent 745908fdb5
commit faf73c184a
+1 -11
View File
@@ -63,7 +63,7 @@ int main(int argc, char *argv[]) {
TTF_Init();
window = SDL_CreateWindow("Text Adventure", 1280, 720, 0);
SDL_CreateWindowAndRenderer("Text Adventure", 1280, 720, SDL_WINDOW_RESIZABLE, &window, &renderer);
if (window == nullptr) {
printf("SDL_CreateWindow Error: \n", SDL_GetError());
@@ -71,16 +71,6 @@ int main(int argc, char *argv[]) {
return 1;
}
renderer = SDL_CreateRenderer(window, NULL);
if (renderer == nullptr)
{
printf("SDL_CreateRenderer Error: \n", SDL_GetError());
SDL_DestroyWindow(window);
SDL_Quit();
return 1;
}
if (!game) {
game.Init();