The window height and width variable type is changed from double to int

This commit is contained in:
2dust
2025-07-02 20:53:53 +08:00
parent 7a9ee6e9e2
commit 4141f451b7
5 changed files with 21 additions and 15 deletions
+12 -2
View File
@@ -2198,8 +2198,18 @@ public class ConfigHandler
config.UiItem.WindowSizeItem.Add(sizeItem);
}
sizeItem.Width = width;
sizeItem.Height = height;
sizeItem.Width = (int)width;
sizeItem.Height = (int)height;
return 0;
}
public static int SaveMainGirdHeight(Config config, double height1, double height2)
{
var uiItem = config.UiItem ?? new();
uiItem.MainGirdHeight1 = (int)(height1 + 0.1);
uiItem.MainGirdHeight2 = (int)(height2 + 0.1);
return 0;
}