Fix Render Height Binding in RenderConfigWindow

This commit is contained in:
copecone committed 2026-10-07 11:47:40 +09:00
1 parent 671bdda9a1
commit b43c8be5dc
1 file changed
+2 -3
+2 -3
View File
@@ -59,8 +59,7 @@ internal static class RenderConfigWindow
{ {
Id = "RendererMod_RenderConfig", Id = "RendererMod_RenderConfig",
Title = LocalizationManager.Get("ui.render_config.window_title"), Title = LocalizationManager.Get("ui.render_config.window_title"),
Size = new Vector2(900, 600), TopBarHeight = 40, Size = new Vector2(900, 600), Draggable = true, Resizable = true,
Draggable = true, Resizable = true,
ShowCloseButton = true ShowCloseButton = true
}); });
@@ -159,7 +158,7 @@ internal static class RenderConfigWindow
format: "F0", clampMode: ClampMode.All, format: "F0", clampMode: ClampMode.All,
sliderFilter: value => Snap(renderHeightSnap, value), inputFilter: value => Math.Max(value, 2), sliderFilter: value => Snap(renderHeightSnap, value), inputFilter: value => Math.Max(value, 2),
onComplete: null, onChanged: val => { config.RenderWidth = (int)Math.Round(val); }, onComplete: null, onChanged: val => { config.RenderHeight = (int)Math.Round(val); },
text: LocalizationManager.Get("ui.render_config.render_height"), text: LocalizationManager.Get("ui.render_config.render_height"),
id: "slider_render_height", showFill: true id: "slider_render_height", showFill: true
); );