mirror of
https://github.com/visualboyadvance-m/visualboyadvance-m
synced 2025-10-05 23:52:49 +02:00
Apply bilinear option for SDL texture
Set the texture option for bilinear or nearest on the SDL texture depending on the value of the bilinear checkbox. Signed-off-by: Rafael Kitover <rkitover@gmail.com>
This commit is contained in:
@@ -2574,6 +2574,13 @@ SDL_TEXTUREACCESS_STREAMING, (width * scale), (height * scale));
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
// Set bilinear or nearest on the texture.
|
||||
#ifdef ENABLE_SDL3
|
||||
SDL_SetTextureScaleMode(texture, OPTION(kDispBilinear) ? SDL_SCALEMODE_LINEAR : SDL_SCALEMODE_NEAREST);
|
||||
#else
|
||||
SDL_SetHint(SDL_HINT_RENDER_SCALE_QUALITY, OPTION(kDispBilinear) ? "1" : "0");
|
||||
#endif
|
||||
|
||||
did_init = true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user