Stretched Fixed Mode Plugin: Add Integer Scaling option (#2863)
Forces integer scale factor by rounding stretched dimensions towards zero.
This commit is contained in:
committed by
Tomas Slusny
parent
108f441f23
commit
d2871d925c
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -94,6 +94,7 @@ public class StretchedFixedModePlugin extends Plugin
|
||||
|
||||
private void updateConfig()
|
||||
{
|
||||
client.setStretchedIntegerScaling(config.integerScaling());
|
||||
client.setStretchedKeepAspectRatio(config.keepAspectRatio());
|
||||
client.setStretchedFast(config.increasedPerformance());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user