mofe fontSize init to first call

This commit is contained in:
2025-12-05 16:33:12 -08:00
parent 548e4a74a8
commit 702efa472b
+7 -2
View File
@@ -139,8 +139,8 @@
{
const option_name = 'Font Size'
const font_size_symbol = 'font_size'
let font_size = Game_System.prototype.mainFontSize.call();
const font_size_max = font_size * 2;
let font_size = -1
let font_size_max = -1
const addGeneralOptions = Window_Options.prototype.addGeneralOptions
Window_Options.prototype.addGeneralOptions = function () {
@@ -222,7 +222,12 @@
}
}
const mainFontSize = Game_System.prototype.mainFontSize
Game_System.prototype.mainFontSize = function () {
if (font_size === -1) {
font_size = mainFontSize.call()
font_size_max = font_size * 2
}
return font_size
}
}