Fix or disable multiple warnings

This commit is contained in:
Stone_Red
2024-02-22 09:34:01 +01:00
parent 481d0554c2
commit 9a75cbd8e7
7 changed files with 13 additions and 8 deletions
@@ -6,8 +6,13 @@ namespace DesktopMagic.Api.Drawing;
internal class FontComparer : IEqualityComparer<Font>
{
public bool Equals(Font font1, Font font2)
public bool Equals(Font? font1, Font? font2)
{
if (font1 is null || font2 is null)
{
return false;
}
if (font1.Name != font2.Name)
{
return false;