870 |
|
add2icon(y, scanline); |
871 |
|
if (scale) |
872 |
|
shiftcolrs(scanline, xmax, scale); |
873 |
+ |
for (x = 0; x < xmax; x++) |
874 |
+ |
scanline[x][GRN] = normbright(scanline[x]); |
875 |
|
colrs_gambs(scanline, xmax); |
876 |
|
if (maxcolors < 256) |
877 |
|
for (x = 0; x < xmax; x++) |
878 |
< |
*dp++ = ((long)normbright(scanline[x]) * |
879 |
< |
maxcolors + 128) >> 8; |
878 |
> |
*dp++ = ((long)scanline[x][GRN] * |
879 |
> |
maxcolors + maxcolors/2) >> 8; |
880 |
|
else |
881 |
|
for (x = 0; x < xmax; x++) |
882 |
< |
*dp++ = normbright(scanline[x]); |
882 |
> |
*dp++ = scanline[x][GRN]; |
883 |
|
} |
884 |
|
for (x = 0; x < maxcolors; x++) |
885 |
|
clrtab[x][RED] = clrtab[x][GRN] = |
886 |
< |
clrtab[x][BLU] = ((long)x*256+maxcolors/2)/maxcolors; |
886 |
> |
clrtab[x][BLU] = ((long)x*256 + 128)/maxcolors; |
887 |
|
} |
888 |
|
|
889 |
|
|