mirror of
https://github.com/osukey/osukey.git
synced 2025-06-08 21:07:59 +09:00
Premature checks to avoid unnecessary updates
This commit is contained in:
parent
f70f25098b
commit
d1f3cb3dbd
@ -36,6 +36,8 @@ namespace osu.Game.Graphics.Backgrounds
|
|||||||
get => colourLight;
|
get => colourLight;
|
||||||
set
|
set
|
||||||
{
|
{
|
||||||
|
if (colourLight == value) return;
|
||||||
|
|
||||||
colourLight = value;
|
colourLight = value;
|
||||||
updateColours();
|
updateColours();
|
||||||
}
|
}
|
||||||
@ -48,6 +50,8 @@ namespace osu.Game.Graphics.Backgrounds
|
|||||||
get => colourDark;
|
get => colourDark;
|
||||||
set
|
set
|
||||||
{
|
{
|
||||||
|
if (colourDark == value) return;
|
||||||
|
|
||||||
colourDark = value;
|
colourDark = value;
|
||||||
updateColours();
|
updateColours();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user