mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 14:32:55 +08:00
Use new invalidation rules
This commit is contained in:
parent
8f909354bf
commit
5f7270ee4b
@ -1 +1 @@
|
||||
Subproject commit 3ad1dd52ae511b816fb928f70ef811ec605c5c18
|
||||
Subproject commit 68111ddd8dae9d57874e96812e2b83920b9b8155
|
@ -134,7 +134,7 @@ namespace osu.Game.Rulesets.Mania.Timing
|
||||
public override void InvalidateFromChild(Invalidation invalidation)
|
||||
{
|
||||
// We only want to re-compute our size when a child's size or position has changed
|
||||
if ((invalidation & Invalidation.Geometry) == 0)
|
||||
if ((invalidation & Invalidation.RequiredParentSizeToFit) == 0)
|
||||
{
|
||||
base.InvalidateFromChild(invalidation);
|
||||
return;
|
||||
|
@ -39,7 +39,7 @@ namespace osu.Game.Overlays.Settings.Sections.General
|
||||
set
|
||||
{
|
||||
bounding = value;
|
||||
Invalidate(Invalidation.Geometry);
|
||||
Invalidate(Invalidation.MiscGeometry);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -69,7 +69,7 @@ namespace osu.Game.Screens.Play
|
||||
|
||||
public override bool Invalidate(Invalidation invalidation = Invalidation.All, Drawable source = null, bool shallPropagate = true)
|
||||
{
|
||||
if ((invalidation & Invalidation.SizeInParentSpace) > 0)
|
||||
if ((invalidation & Invalidation.DrawSize) > 0)
|
||||
layout.Invalidate();
|
||||
return base.Invalidate(invalidation, source, shallPropagate);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user