correcting gamma for proper display

This commit is contained in:
Jason Hancock 2007-10-12 00:15:47 +00:00
parent 156c36acbb
commit c09217cd1c

View File

@ -407,6 +407,8 @@ static_set_gamma(float gamma) {
short j, i; short j, i;
short y[3]; short y[3];
gamma = (2 * gamma) + 1.0;
y[0] = 256 * gamma; y[0] = 256 * gamma;
y[1] = 256 * gamma; y[1] = 256 * gamma;