Mercurial > mplayer.hg
view libvo/font_load.h @ 2190:81b7d130ccab
added functions :
+ cc_check() replaces "$_cc" "$TMPC" -o "$TMPO" "$@" >/dev/null 2>&1
+ die() replaces echo "Error blah" / flush tempfiles / exit
+ boolean OS macros : linux() bsd() bsdos() freebsd() openbsd()
(note: bsd = bsdos || freebsd || openbsd)
changed handling of directories with "for" loops (tempdir && css detection)
added XXX where things need to be checked for a particular OS
removed unnecessary tempfile flush
modified a few if... which were not obvious to read for more readability
reidented the --help message for it to be more "80-char-wide-terms" aware
changed a few echo ... echo ... echo ... to cat <<EOF
enabled THREAD_SAFE's flags for BSD's and Linux (-D_REENTRANT)
author | pl |
---|---|
date | Sat, 13 Oct 2001 16:53:37 +0000 |
parents | c3e3b0ae4d06 |
children | 4e64fca268e9 |
line wrap: on
line source
typedef struct { unsigned char *bmp; unsigned char *pal; int w,h,c; } raw_file; typedef struct { char *name; char *fpath; int spacewidth; int charspace; int height; // char *fname_a; // char *fname_b; raw_file* pic_a[16]; raw_file* pic_b[16]; short font[65536]; short start[65536]; short width[65536]; } font_desc_t; raw_file* load_raw(char *name,int verbose); font_desc_t* read_font_desc(char* fname,float factor,int verbose);