Fixed #8483 (meep why did you make the minimum 5%)

This commit is contained in:
Anuken 2023-04-07 11:05:26 -04:00
parent 60fc2fb5cd
commit f4fabecce7
2 changed files with 2 additions and 2 deletions

View file

@ -431,7 +431,7 @@ public class Vars implements Loadable{
settings.setAutosave(false);
settings.load();
Scl.setProduct(settings.getInt("uiscale", 100) / 100f);
Scl.setProduct(Math.max(settings.getInt("uiscale", 100), 25) / 100f);
if(!loadLocales) return;

View file

@ -367,7 +367,7 @@ public class SettingsMenuDialog extends BaseDialog{
int[] lastUiScale = {settings.getInt("uiscale", 100)};
graphics.sliderPref("uiscale", 100, 5, 300, 5, s -> {
graphics.sliderPref("uiscale", 100, 25, 300, 5, s -> {
//if the user changed their UI scale, but then put it back, don't consider it 'changed'
Core.settings.put("uiscalechanged", s != lastUiScale[0]);
return s + "%";