corregides les textures amb filtre linear
This commit is contained in:
@@ -473,6 +473,8 @@ void Title::update()
|
||||
options->filter = FILTER_NEAREST;
|
||||
else
|
||||
options->filter = FILTER_LINEAL;
|
||||
Texture::setGlobalScaleMode(options->filter == FILTER_NEAREST ? SDL_SCALEMODE_NEAREST : SDL_SCALEMODE_LINEAR);
|
||||
reLoadTextures();
|
||||
updateMenuLabels();
|
||||
break;
|
||||
|
||||
@@ -1058,6 +1060,10 @@ void Title::createTiledBackground()
|
||||
{
|
||||
// Crea la textura para el mosaico de fondo
|
||||
background = SDL_CreateTexture(renderer, SDL_PIXELFORMAT_RGBA8888, SDL_TEXTUREACCESS_TARGET, GAMECANVAS_WIDTH * 2, GAMECANVAS_HEIGHT * 2);
|
||||
if (background != nullptr)
|
||||
{
|
||||
SDL_SetTextureScaleMode(background, Texture::currentScaleMode);
|
||||
}
|
||||
if (background == nullptr)
|
||||
{
|
||||
if (options->console)
|
||||
|
||||
Reference in New Issue
Block a user