# HG changeset patch # User atmos4 # Date 1027857692 0 # Node ID b1f788bca721da1c84122c9676f14348290556e5 # Parent a8caf30732de63714d190a0f9ddc3c3a47fc2f0a Make vobsub palette generation compatible with windows vobsub. diff -r a8caf30732de -r b1f788bca721 vobsub.c --- 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); }