diff options
author | Christian Vogler <cvogler@users.sourceforge.net> | 2002-01-08 16:47:56 +0000 |
---|---|---|
committer | Christian Vogler <cvogler@users.sourceforge.net> | 2002-01-08 16:47:56 +0000 |
commit | 9d0cd30a2d05db1e72dbbefa305024afcd34a0fc (patch) | |
tree | 4433bf6e6f8f1d36c041e3a6d8a9e81f44c9c430 /src/libspucc/cc_decoder.c | |
parent | 5672c3abb1afcbcacd2a1f618ab850f5838add2a (diff) | |
download | xine-lib-9d0cd30a2d05db1e72dbbefa305024afcd34a0fc.tar.gz xine-lib-9d0cd30a2d05db1e72dbbefa305024afcd34a0fc.tar.bz2 |
increase palette size of overlays to 256 colors
allow multiple text colors in osd text rendering
CVS patchset: 1376
CVS date: 2002/01/08 16:47:56
Diffstat (limited to 'src/libspucc/cc_decoder.c')
-rw-r--r-- | src/libspucc/cc_decoder.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/libspucc/cc_decoder.c b/src/libspucc/cc_decoder.c index 2b07d58aa..e31735e7b 100644 --- a/src/libspucc/cc_decoder.c +++ b/src/libspucc/cc_decoder.c @@ -20,7 +20,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: cc_decoder.c,v 1.3 2002/01/07 23:09:38 cvogler Exp $ + * $Id: cc_decoder.c,v 1.4 2002/01/08 16:47:56 cvogler Exp $ * * stuff needed to provide closed captioning decoding and display * @@ -442,7 +442,8 @@ static void ccrow_render(cc_renderer_t *renderer, cc_row_t *this, int rownum) buf[seg_pos[seg + 1] - seg_pos[seg]] = '\0'; ccrow_set_attributes(renderer, this, seg_pos[seg]); osd_renderer->render_text(renderer->cap_display, - x + cumulative_seg_width[seg], y, buf); + x + cumulative_seg_width[seg], y, buf, + OSD_TEXT1); } pos = ccrow_find_next_text_part(this, endpos); @@ -667,7 +668,7 @@ static void cc_renderer_adjust_osd_object(cc_renderer_t *this) this->cap_display = this->osd_renderer->new_object(this->osd_renderer, this->width, this->height); - this->osd_renderer->set_text_palette(this->cap_display, 2); + this->osd_renderer->set_text_palette(this->cap_display, 2, OSD_TEXT1); } |