pixel contrast in mono
This commit is contained in:
parent
14fd31d13c
commit
c72a393498
1 changed files with 6 additions and 5 deletions
|
@ -158,13 +158,14 @@ static void colors_setup( void )
|
||||||
b = COLORS[ i ].b;
|
b = COLORS[ i ].b;
|
||||||
}
|
}
|
||||||
|
|
||||||
ARGBColors[ i ] = 0xff000000 | ( r << 16 ) | ( g << 8 ) | b;
|
if ( !config.mono && i == PIXEL ) {
|
||||||
}
|
|
||||||
|
|
||||||
r = ( 0x13 - contrast ) * ( COLORS[ LCD ].r / 0x10 );
|
r = ( 0x13 - contrast ) * ( COLORS[ LCD ].r / 0x10 );
|
||||||
g = ( 0x13 - contrast ) * ( COLORS[ LCD ].g / 0x10 );
|
g = ( 0x13 - contrast ) * ( COLORS[ LCD ].g / 0x10 );
|
||||||
b = 128 - ( ( 0x13 - contrast ) * ( ( 128 - COLORS[ LCD ].b ) / 0x10 ) );
|
b = 128 - ( ( 0x13 - contrast ) * ( ( 128 - COLORS[ LCD ].b ) / 0x10 ) );
|
||||||
ARGBColors[ PIXEL ] = 0xff000000 | ( r << 16 ) | ( g << 8 ) | b;
|
}
|
||||||
|
|
||||||
|
ARGBColors[ i ] = 0xff000000 | ( r << 16 ) | ( g << 8 ) | b;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// This should be called once to setup the surfaces. Calling it multiple
|
// This should be called once to setup the surfaces. Calling it multiple
|
||||||
|
|
Loading…
Reference in a new issue