mirror of
https://github.com/ppy/osu
synced 2024-12-16 03:45:46 +00:00
Improve variable names
This commit is contained in:
parent
a1d67f0cf6
commit
3d5783a0ea
@ -140,20 +140,20 @@ namespace osu.Game.Overlays.Settings.Sections.Graphics
|
||||
windowModeDropdown.Hide();
|
||||
}, true);
|
||||
|
||||
windowModeDropdown.Current.ValueChanged += v => updateResolutionDropdown();
|
||||
windowModeDropdown.Current.ValueChanged += _ => updateResolutionDropdown();
|
||||
|
||||
currentDisplay.BindValueChanged(v => Schedule(() =>
|
||||
currentDisplay.BindValueChanged(display => Schedule(() =>
|
||||
{
|
||||
resolutions.RemoveRange(1, resolutions.Count - 1);
|
||||
|
||||
if (v.NewValue != null)
|
||||
if (display.NewValue != null)
|
||||
{
|
||||
resolutions.AddRange(v.NewValue.DisplayModes
|
||||
.Where(m => m.Size.Width >= 800 && m.Size.Height >= 600)
|
||||
.OrderByDescending(m => m.Size.Width)
|
||||
.ThenByDescending(m => m.Size.Height)
|
||||
.Select(m => m.Size)
|
||||
.Distinct());
|
||||
resolutions.AddRange(display.NewValue.DisplayModes
|
||||
.Where(m => m.Size.Width >= 800 && m.Size.Height >= 600)
|
||||
.OrderByDescending(m => m.Size.Width)
|
||||
.ThenByDescending(m => m.Size.Height)
|
||||
.Select(m => m.Size)
|
||||
.Distinct());
|
||||
}
|
||||
|
||||
updateResolutionDropdown();
|
||||
|
Loading…
Reference in New Issue
Block a user