freetype-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [freetype2-demos] master 1612259: [ftview, ftstring, ftgrid] Unify g


From: Alexei Podtelezhnikov
Subject: Re: [freetype2-demos] master 1612259: [ftview, ftstring, ftgrid] Unify gamma adjustments.
Date: Thu, 14 May 2020 07:38:28 -0400

> +      else if ( 2.25 - 0.1 < display->gamma && display->gamma < 2.25 )
> +        display->gamma  = 0.0;  /* sRGB */
>
> I don't understand what this function exactly does, and why the gamma
> value is sometimes changed abruptly.  Please add a comment that
> explains this – maybe even some additional info should be displayed?

The sRGB transformation is generated by unnatural gamma <= 0 in the
graph library. I just wanted it to appear naturally between 2.2 and
2.3, where it belongs functionally. Hence the if logic to interrupt
and continue the gamma adjustments. Please play with [g] and [v]. I'll
add a comment shortly.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]