changeset 6827:b1f788bca721

Make vobsub palette generation compatible with windows vobsub.
author atmos4
date Sun, 28 Jul 2002 12:01:32 +0000
parents a8caf30732de
children 010be15e48ad
files vobsub.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/vobsub.c	Sun Jul 28 11:07:30 2002 +0000
+++ b/vobsub.c	Sun Jul 28 12:01:32 2002 +0000
@@ -1017,7 +1017,8 @@
 	for (i = 0; i < 16; ++i) {
 	    if (i)
 		putc(',', me->fidx);
-	    fprintf(me->fidx, " %06x", palette[i] & 0x00ffffff);
+	    fprintf(me->fidx, " %02x%02x%02x", palette[i]>>16 & 0x000000ff,
+		palette[i]>>16 & 0x000000ff, palette[i]>>16 & 0x000000ff);
 	}
 	putc('\n', me->fidx);
     }