WIP ASCII art Magic tools; code working!

This commit is contained in:
Bill Kendrick 2024-09-26 00:35:01 -07:00
parent 6a591a2ef1
commit c9f978b1ca
7 changed files with 181 additions and 35 deletions

View file

@ -11918,7 +11918,7 @@ static SDL_Surface *thumbnail2(SDL_Surface * src, int max_x, int max_y, int keep
SDL_GetRGBA(getpixel(src, src_x, src_y), src->format, &r, &g, &b, &a);
#ifdef GAMMA_CORRECTED_THUMBNAILS
/* per: http://www.4p8.com/eric.brasseur/gamma.html */
/* per: http://www.ericbrasseur.org/gamma.html?i=1 */
tr = tr + sRGB_to_linear_table[r];
tg = tg + sRGB_to_linear_table[g];