Skip to content

Commit

Permalink
Merge pull request #284 from WildernessLabs/colormode_compare
Browse files Browse the repository at this point in the history
Fix IsColorTypeSupported compare logic
  • Loading branch information
ctacke authored Mar 10, 2025
2 parents 437d25a + d3dd68c commit 504f9b4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public interface IPixelDisplay : IDisplay
/// <param name="mode">The color mode</param>
public bool IsColorTypeSupported(ColorMode mode)
{
return (SupportedColorModes | mode) != 0;
return (SupportedColorModes & mode) != 0;
}

/// <summary>
Expand Down

0 comments on commit 504f9b4

Please sign in to comment.