Mercurial > mplayer.hg
changeset 4122:3ee2a23f91c7
Fix brightness of subtitles
author | kmkaplan |
---|---|
date | Sat, 12 Jan 2002 21:48:41 +0000 |
parents | a71d4ffc6c97 |
children | 467a7141f5c9 |
files | spudec.c |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/spudec.c Sat Jan 12 21:08:12 2002 +0000 +++ b/spudec.c Sat Jan 12 21:48:41 2002 +0000 @@ -116,9 +116,9 @@ if (alpha[i] == 0) cmap[i] = 0; else { - cmap[i] = ((this->global_palette[this->palette[i]] >> 16) & 0xff) - alpha[i]; - if (cmap[i] < 0) - cmap[i] = 0; + cmap[i] = ((this->global_palette[this->palette[i]] >> 16) & 0xff); + if (cmap[i] + alpha[i] > 255) + cmap[i] = 256 - alpha[i]; } }