Eliminado el filtro bilineal
This commit is contained in:
@@ -27,12 +27,6 @@ bool init()
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// Set texture filtering to linear
|
|
||||||
if (!SDL_SetHint(SDL_HINT_RENDER_SCALE_QUALITY, "1"))
|
|
||||||
{
|
|
||||||
printf("Warning: Linear texture filtering not enabled!");
|
|
||||||
}
|
|
||||||
|
|
||||||
// Create window
|
// Create window
|
||||||
window = SDL_CreateWindow("SDL Tutorial", SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, SCREEN_WIDTH * 2, SCREEN_HEIGHT * 2, SDL_WINDOW_SHOWN);
|
window = SDL_CreateWindow("SDL Tutorial", SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, SCREEN_WIDTH * 2, SCREEN_HEIGHT * 2, SDL_WINDOW_SHOWN);
|
||||||
if (window == NULL)
|
if (window == NULL)
|
||||||
@@ -54,14 +48,6 @@ bool init()
|
|||||||
// Initialize renderer color
|
// Initialize renderer color
|
||||||
SDL_SetRenderDrawColor(renderer, 0xFF, 0xFF, 0xFF, 0xFF);
|
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);
|
SDL_RenderSetLogicalSize(renderer, SCREEN_WIDTH, SCREEN_HEIGHT);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user