summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-09-07 13:18:59 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-09-07 13:18:59 +0300
commit56ebd2011cdc9e0375a941fac4ecbbc0977e0f79 (patch)
tree78a56715eb077b0ab36edba4ff1882fce49930d8 /src
parentab893836d09a178460b9e64e76e42c89836e5721 (diff)
Media: Brighten colorized images slightly
Diffstat (limited to 'src')
-rw-r--r--src/media.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/media.c b/src/media.c
index e47c5278..8f6c6382 100644
--- a/src/media.c
+++ b/src/media.c
@@ -107,7 +107,7 @@ static void applyImageStyle_(enum iImageStyle style, iInt2 size, uint8_t *imgDat
107 colorize = (iColor){ 255, 255, 255, 255}; 107 colorize = (iColor){ 255, 255, 255, 255};
108 } 108 }
109// printf("colorize:%d %d %d\n", colorize.r, colorize.g, colorize.b); 109// printf("colorize:%d %d %d\n", colorize.r, colorize.g, colorize.b);
110// brighten = iClamp(1.0f - (colorize.r + colorize.g + colorize.b) / 600.0f, 0.0f, 0.5f); /* compensate loss of light */ 110 brighten = iClamp(1.0f - (colorize.r + colorize.g + colorize.b) / 600.0f, 0.0f, 0.5f); /* compensate loss of light */
111// printf("bright:%f\n", brighten); 111// printf("bright:%f\n", brighten);
112 } 112 }
113 uint8_t *pos = imgData; 113 uint8_t *pos = imgData;