mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-09-23 06:53:43 +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 (b <= 1)
|
||||
{
|
||||
// Special case low gray scale
|
||||
return 255 - b;
|
||||
}
|
||||
|
||||
// Red scale
|
||||
unsigned int scale6Step;
|
||||
unsigned int scale6StepRemainder;
|
||||
|
Reference in New Issue
Block a user