Skip to content

Commit 4e8a2b0

Browse files
fix: use ColourInfo == Colour4 comparison in TestSceneHyperDashColouring to avoid SRGB precision loss
Agent-Logs-Url: https://github.com/winnerspiros/osu/sessions/3be4f163-f2b7-40d4-803a-c0cc41ca8b50 Co-authored-by: winnerspiros <1675249+winnerspiros@users.noreply.github.com>
1 parent 1e296b1 commit 4e8a2b0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

osu.Game.Rulesets.Catch.Tests/TestSceneHyperDashColouring.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ private Drawable setupSkinHierarchy(Drawable child, ISkin skin)
197197

198198
private bool checkLegacyFruitHyperDashColour(DrawableFruit fruit, Colour4 expectedColour) =>
199199
fruit.ChildrenOfType<SkinnableDrawable>().FirstOrDefault()?.Drawable.ChildrenOfType<Sprite>()
200-
.Any(c => c.Colour.TopLeft.SRGB == expectedColour) == true;
200+
.Any(c => c.Colour == expectedColour) == true;
201201

202202
private class TestSkin : LegacySkin
203203
{

0 commit comments

Comments
 (0)