[Mplayer-cvslog] CVS: main spudec.c,1.16,1.17
Kim Minh Kaplan CVS
kmkaplan at mplayer.dev.hu
Sat Jan 12 22:48:43 CET 2002
Update of /cvsroot/mplayer/main
In directory mplayer:/var/tmp.root/cvs-serv22140
Modified Files:
spudec.c
Log Message:
Fix brightness of subtitles
Index: spudec.c
===================================================================
RCS file: /cvsroot/mplayer/main/spudec.c,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -r1.16 -r1.17
--- spudec.c 10 Jan 2002 17:17:37 -0000 1.16
+++ spudec.c 12 Jan 2002 21:48:41 -0000 1.17
@@ -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];
}
}
More information about the MPlayer-cvslog
mailing list