Fix ~3500 analyser issues

See merge request ryubing/ryujinx!44
This commit is contained in:
MrKev 2025-05-30 17:08:34 -05:00 committed by LotP
parent 417df486b1
commit 361d0c5632
622 changed files with 3080 additions and 2652 deletions

View file

@ -1,4 +1,4 @@
using Gommon;
using Gommon;
using Ryujinx.Common.Helper;
using System;
using System.Drawing;
@ -31,12 +31,12 @@ namespace Ryujinx.Common.Utilities
{
CyclingEnabled = false;
}
public static float Speed { get; set; } = 1;
private static readonly Lock _lock = new();
private static Color _color = Color.Blue;
public static ref Color Color
@ -55,7 +55,7 @@ namespace Ryujinx.Common.Utilities
lock (_lock)
{
_color = HsbToRgb((_color.GetHue() + Speed) / 360);
_updatedHandler.Call(ref _color);
}
}
@ -63,7 +63,7 @@ namespace Ryujinx.Common.Utilities
public static void Reset()
{
_updatedHandler.Clear();
lock (_lock)
_color = Color.Blue;
}
@ -124,6 +124,7 @@ namespace Ryujinx.Common.Utilities
break;
}
}
return Color.FromArgb(Convert.ToByte(255), Convert.ToByte(r), Convert.ToByte(g), Convert.ToByte(b));
}
}