A game framework written with osu! in mind.
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fix inspections.

+17 -15
+2
osu.Framework/Graphics/BlendingParameters.cs
··· 2 2 // See the LICENCE file in the repository root for full licence text. 3 3 4 4 using System; 5 + using System.Diagnostics.CodeAnalysis; 5 6 using osuTK.Graphics.ES30; 6 7 7 8 namespace osu.Framework.Graphics ··· 158 159 159 160 public override readonly bool Equals(object obj) => obj is BlendingParameters other && this == other; 160 161 162 + [SuppressMessage("ReSharper", "NonReadonlyMemberInGetHashCode")] 161 163 public override readonly int GetHashCode() => HashCode.Combine(Source, Destination, SourceAlpha, DestinationAlpha, RGBEquation, AlphaEquation); 162 164 163 165 public readonly bool IsDisabled =>
+12 -12
osu.Framework/Graphics/Colour/SRGBColour.cs
··· 30 30 /// <param name="second">Second factor.</param> 31 31 /// <returns>Product of first and second.</returns> 32 32 public static SRGBColour operator *(SRGBColour first, SRGBColour second) => new Color4( 33 - first.Linear.R * second.Linear.R, 34 - first.Linear.G * second.Linear.G, 35 - first.Linear.B * second.Linear.B, 36 - first.Linear.A * second.Linear.A); 33 + first.Linear.R * second.Linear.R, 34 + first.Linear.G * second.Linear.G, 35 + first.Linear.B * second.Linear.B, 36 + first.Linear.A * second.Linear.A); 37 37 38 38 public static SRGBColour operator *(SRGBColour first, float second) => new Color4( 39 - first.Linear.R * second, 40 - first.Linear.G * second, 41 - first.Linear.B * second, 42 - first.Linear.A * second); 39 + first.Linear.R * second, 40 + first.Linear.G * second, 41 + first.Linear.B * second, 42 + first.Linear.A * second); 43 43 44 44 public static SRGBColour operator /(SRGBColour first, float second) => first * (1 / second); 45 45 46 46 public static SRGBColour operator +(SRGBColour first, SRGBColour second) => new Color4( 47 - first.Linear.R + second.Linear.R, 48 - first.Linear.G + second.Linear.G, 49 - first.Linear.B + second.Linear.B, 50 - first.Linear.A + second.Linear.A); 47 + first.Linear.R + second.Linear.R, 48 + first.Linear.G + second.Linear.G, 49 + first.Linear.B + second.Linear.B, 50 + first.Linear.A + second.Linear.A); 51 51 52 52 public Vector4 ToVector() => new Vector4(Linear.R, Linear.G, Linear.B, Linear.A); 53 53 public static SRGBColour FromVector(Vector4 v) => new Color4(v.X, v.Y, v.Z, v.W);
+1 -1
osu.Framework/Graphics/DrawInfo.cs
··· 70 70 71 71 public readonly bool Equals(DrawInfo other) => Matrix.Equals(other.Matrix); 72 72 73 - public override readonly string ToString() => $@"{GetType().ReadableName().Replace(@"DrawInfo", string.Empty)} DrawInfo"; 73 + public override string ToString() => $@"{GetType().ReadableName().Replace(@"DrawInfo", string.Empty)} DrawInfo"; 74 74 } 75 75 }
+1 -1
osu.Framework/Graphics/Primitives/Quad.cs
··· 105 105 106 106 public ReadOnlySpan<Vector2> GetAxisVertices() => GetVertices(); 107 107 108 - public readonly unsafe ReadOnlySpan<Vector2> GetVertices() => MemoryMarshal.CreateReadOnlySpan(ref Unsafe.AsRef(in TopLeft), 4); 108 + public ReadOnlySpan<Vector2> GetVertices() => MemoryMarshal.CreateReadOnlySpan(ref Unsafe.AsRef(in TopLeft), 4); 109 109 110 110 public bool Contains(Vector2 pos) => 111 111 new Triangle(BottomRight, BottomLeft, TopRight).Contains(pos) ||
+1 -1
osu.Framework/Platform/MacOS/MacOSClipboard.cs
··· 8 8 { 9 9 public class MacOSClipboard : Clipboard 10 10 { 11 - private NSPasteboard generalPasteboard = NSPasteboard.GeneralPasteboard(); 11 + private readonly NSPasteboard generalPasteboard = NSPasteboard.GeneralPasteboard(); 12 12 13 13 public override string GetText() 14 14 {