1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-15 21:25:37 +08:00

Fix nullref due to framework change.

This commit is contained in:
smoogipooo 2017-04-22 15:35:57 +09:00
parent c6590417ed
commit 2d91400239

View File

@ -12,8 +12,8 @@ namespace osu.Game.Overlays.Options.Sections.Graphics
{ {
protected override string Header => "Layout"; protected override string Header => "Layout";
private OptionSlider<int> letterboxPositionX; private OptionSlider<double> letterboxPositionX;
private OptionSlider<int> letterboxPositionY; private OptionSlider<double> letterboxPositionY;
private Bindable<bool> letterboxing; private Bindable<bool> letterboxing;
@ -35,15 +35,15 @@ namespace osu.Game.Overlays.Options.Sections.Graphics
LabelText = "Letterboxing", LabelText = "Letterboxing",
Bindable = letterboxing, Bindable = letterboxing,
}, },
letterboxPositionX = new OptionSlider<int> letterboxPositionX = new OptionSlider<double>
{ {
LabelText = "Horizontal position", LabelText = "Horizontal position",
Bindable = (BindableInt)config.GetBindable<int>(FrameworkConfig.LetterboxPositionX) Bindable = config.GetBindable<double>(FrameworkConfig.LetterboxPositionX)
}, },
letterboxPositionY = new OptionSlider<int> letterboxPositionY = new OptionSlider<double>
{ {
LabelText = "Vertical position", LabelText = "Vertical position",
Bindable = (BindableInt)config.GetBindable<int>(FrameworkConfig.LetterboxPositionY) Bindable = config.GetBindable<double>(FrameworkConfig.LetterboxPositionY)
}, },
}; };