Stretched Fixed Mode Plugin: Add Integer Scaling option (#2863)

Forces integer scale factor by rounding stretched dimensions towards zero.
This commit is contained in:
BeefaloKing
2018-05-25 00:21:37 -06:00
committed by Tomas Slusny
parent 108f441f23
commit d2871d925c
4 changed files with 36 additions and 0 deletions

View File

@@ -55,4 +55,14 @@ public interface StretchedFixedModeConfig extends Config
{
return false;
}
@ConfigItem(
keyName = "integerScaling",
name = "Integer Scaling",
description = "Forces use of a whole number scale factor"
)
default boolean integerScaling()
{
return false;
}
}

View File

@@ -94,6 +94,7 @@ public class StretchedFixedModePlugin extends Plugin
private void updateConfig()
{
client.setStretchedIntegerScaling(config.integerScaling());
client.setStretchedKeepAspectRatio(config.keepAspectRatio());
client.setStretchedFast(config.increasedPerformance());
}