diff --git a/source/main.cpp b/source/main.cpp index 42dc437..8d71d3c 100644 --- a/source/main.cpp +++ b/source/main.cpp @@ -27,12 +27,6 @@ bool init() } else { - // Set texture filtering to linear - if (!SDL_SetHint(SDL_HINT_RENDER_SCALE_QUALITY, "1")) - { - printf("Warning: Linear texture filtering not enabled!"); - } - // Create window window = SDL_CreateWindow("SDL Tutorial", SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, SCREEN_WIDTH * 2, SCREEN_HEIGHT * 2, SDL_WINDOW_SHOWN); if (window == NULL) @@ -54,14 +48,6 @@ bool init() // Initialize renderer color SDL_SetRenderDrawColor(renderer, 0xFF, 0xFF, 0xFF, 0xFF); - // Initialize PNG loading - int imgFlags = IMG_INIT_PNG; - if (!(IMG_Init(imgFlags) & imgFlags)) - { - printf("SDL_image could not initialize! SDL_image Error: %s\n", IMG_GetError()); - success = false; - } - SDL_RenderSetLogicalSize(renderer, SCREEN_WIDTH, SCREEN_HEIGHT); } }