From f9fab6e53b58556b399e584b5c0cb7945bc7f25b Mon Sep 17 00:00:00 2001 From: Sergio Valor Date: Thu, 22 Aug 2024 20:52:16 +0200 Subject: [PATCH] Eliminado el filtro bilineal --- source/main.cpp | 14 -------------- 1 file changed, 14 deletions(-) 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); } }