mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-12-14 12:09:36 +00:00
Fix low gray color mapping to dark red
This commit is contained in:
@@ -93,6 +93,12 @@ namespace PortabilityLayer
|
|||||||
{
|
{
|
||||||
if (g <= 1 && g <= 1)
|
if (g <= 1 && g <= 1)
|
||||||
{
|
{
|
||||||
|
if (b <= 1)
|
||||||
|
{
|
||||||
|
// Special case low gray scale
|
||||||
|
return 255 - b;
|
||||||
|
}
|
||||||
|
|
||||||
// Red scale
|
// Red scale
|
||||||
unsigned int scale6Step;
|
unsigned int scale6Step;
|
||||||
unsigned int scale6StepRemainder;
|
unsigned int scale6StepRemainder;
|
||||||
|
|||||||
Reference in New Issue
Block a user