SDL: Fix the default scale factor for high resolution games

This fixes bug #12847: HQ filter broken when applied as a global setting
This commit is contained in:
Thierry Crozat 2021-08-26 18:31:10 +01:00
parent 3550bd030f
commit 478fbbbe9b

View File

@ -717,7 +717,8 @@ void SurfaceSdlGraphicsManager::initSize(uint w, uint h, const Graphics::PixelFo
if ((int)w != _videoMode.screenWidth || (int)h != _videoMode.screenHeight) {
const bool useDefault = defaultGraphicsModeConfig();
if (useDefault && w > 320) {
setScaler(_videoMode.scalerIndex, 1);
// Only the normal scaler has a 1x mode
setScaler(ScalerMan.findScalerPluginIndex("normal"), 1);
} else {
setScaler(_videoMode.scalerIndex, ConfMan.getInt("scale_factor"));
}