Mercurial > mplayer.hg
view Gui/skin/font.h @ 2887:bc648c6a464a
fixes a segfault if file specified in -o can't be accessed
(bug found by Colin Marquardt <colin@marquardt-home.de>)
author | pl |
---|---|
date | Tue, 13 Nov 2001 23:43:33 +0000 |
parents | 016f6d583733 |
children | 8cfddba867b4 |
line wrap: on
line source
#ifndef _MYFONT #define _MYFONT #include "../bitmap/bitmap.h" typedef struct { int x,y; // location int sx,sy; // size } fntChar; typedef struct { fntChar Fnt[256]; txSample Bitmap; char name[128]; } bmpFont; extern fntChar Fnt[256]; extern txSample Bitmap; extern bmpFont * Fonts[25]; extern int fntAddNewFont( char * name ); extern void fntFreeFont( void ); extern int fntFindID( char * name ); extern int fntRead( char * path,char * fname,int id ); extern txSample * fntRender( int id,int px,int sx,char * fmt,... ); #endif