DrawInfo -> DrawColourInfo

This commit is contained in:
Dean Herbert
2018-09-06 18:02:04 +09:00
parent 9f67119ba9
commit a1780fddc9
4 changed files with 5 additions and 5 deletions

View File

@ -95,7 +95,7 @@ namespace osu.Game.Graphics
{
//adjust shadow alpha based on highest component intensity to avoid muddy display of darker text.
//squared result for quadratic fall-off seems to give the best result.
var avgColour = (Color4)DrawInfo.Colour.AverageColour;
var avgColour = (Color4)DrawColourInfo.Colour.AverageColour;
spriteShadow.Alpha = (float)Math.Pow(Math.Max(Math.Max(avgColour.R, avgColour.G), avgColour.B), 2);