mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 08:49:59 +09:00
Improve variable names
This commit is contained in:
@ -140,15 +140,15 @@ namespace osu.Game.Overlays.Settings.Sections.Graphics
|
|||||||
windowModeDropdown.Hide();
|
windowModeDropdown.Hide();
|
||||||
}, true);
|
}, true);
|
||||||
|
|
||||||
windowModeDropdown.Current.ValueChanged += v => updateResolutionDropdown();
|
windowModeDropdown.Current.ValueChanged += _ => updateResolutionDropdown();
|
||||||
|
|
||||||
currentDisplay.BindValueChanged(v => Schedule(() =>
|
currentDisplay.BindValueChanged(display => Schedule(() =>
|
||||||
{
|
{
|
||||||
resolutions.RemoveRange(1, resolutions.Count - 1);
|
resolutions.RemoveRange(1, resolutions.Count - 1);
|
||||||
|
|
||||||
if (v.NewValue != null)
|
if (display.NewValue != null)
|
||||||
{
|
{
|
||||||
resolutions.AddRange(v.NewValue.DisplayModes
|
resolutions.AddRange(display.NewValue.DisplayModes
|
||||||
.Where(m => m.Size.Width >= 800 && m.Size.Height >= 600)
|
.Where(m => m.Size.Width >= 800 && m.Size.Height >= 600)
|
||||||
.OrderByDescending(m => m.Size.Width)
|
.OrderByDescending(m => m.Size.Width)
|
||||||
.ThenByDescending(m => m.Size.Height)
|
.ThenByDescending(m => m.Size.Height)
|
||||||
|
Reference in New Issue
Block a user