view TOOLS/subfont-c/osd/gen_osd_h.c @ 20194:10cebc4e94ae

code simplification and minor bug fix for files restarting rather than moving to the next file within the playlist.
author vayne
date Fri, 13 Oct 2006 17:30:41 +0000
parents 9a754317898e
children
line wrap: on
line source

#include <stdio.h>

int main()
{
    int c;
    int cnt;
    printf("unsigned char osd_font_pfb[] = {");
    for (cnt = 0;;cnt++) {
	if (cnt % 16 == 0) printf("\n");
	c = getchar();
	if (c < 0) break;
	printf("0x%02x,", c);
    }
    printf("};\n");
}