Fix low gray color mapping to dark red

This commit is contained in:
elasota
2019-12-30 20:52:56 -05:00
parent 349680840b
commit 918578469e

View File

@@ -93,6 +93,12 @@ namespace PortabilityLayer
{
if (g <= 1 && g <= 1)
{
if (b <= 1)
{
// Special case low gray scale
return 255 - b;
}
// Red scale
unsigned int scale6Step;
unsigned int scale6StepRemainder;