mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 00:40:09 +09:00
Use Enum.HasFlag
With .NET core 2.0+ this is as efficient as the ugly code we've been using.
This commit is contained in:
@ -84,7 +84,7 @@ namespace osu.Game.Graphics
|
||||
|
||||
public override bool Invalidate(Invalidation invalidation = Invalidation.All, Drawable source = null, bool shallPropagate = true)
|
||||
{
|
||||
if ((invalidation & Invalidation.Colour) > 0 && Shadow)
|
||||
if (invalidation.HasFlag(Invalidation.Colour) && Shadow)
|
||||
layout.Invalidate();
|
||||
return base.Invalidate(invalidation, source, shallPropagate);
|
||||
}
|
||||
|
Reference in New Issue
Block a user