corregides les textures amb filtre linear

This commit is contained in:
2026-04-03 10:20:26 +02:00
parent 7e570e2814
commit 8f1aeadeee
9 changed files with 41 additions and 3 deletions

View File

@@ -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)