[MPlayer-dev-eng] [PATCH] osd garbage shadows fix

Christian LESTRADE christian.lestrade at free.fr
Sat Jan 4 11:41:58 CET 2003


Hello,

When displaying OSD symbols with point size greater than 18, there are garbage
shadows over each symbol.

These shadows are especially visible when viewing films using white background.

I submit the following fix in order to get clean shadows:

--- MPlayer-0.90rc2/TOOLS/subfont-c/subfont.c.orig	2002-12-14 
18:55:23.000000000 +0100
+++ MPlayer-0.90rc2/TOOLS/subfont-c/subfont.c	2003-01-02 17:43:29.000000000 
+0100
@@ -1030,6 +1030,7 @@

      abuffer = (unsigned char*)malloc(width*height);
      if (abuffer==NULL) ERROR("malloc failed.");
+    memset(abuffer, 0, width*height);
      alpha();
      write_bitmap(abuffer, 'a');


And don't forget to regenerate the font packs (font-arial-* ...) after applying
the above patch!


Christian 



More information about the MPlayer-dev-eng mailing list