Mercurial > mplayer.hg
comparison libvo/vo_aa.c @ 1572:25c2ee4de8b1
vo_font SEGFAULT fixed
author | arpi |
---|---|
date | Fri, 17 Aug 2001 10:18:27 +0000 |
parents | db379aa38e51 |
children | 2766b0d3863d |
comparison
equal
deleted
inserted
replaced
1571:6435106db259 | 1572:25c2ee4de8b1 |
---|---|
298 /* nothing will change its size, be we need some values initialized */ | 298 /* nothing will change its size, be we need some values initialized */ |
299 resize(); | 299 resize(); |
300 | 300 |
301 #ifdef USE_OSD | 301 #ifdef USE_OSD |
302 /* now init out own 'font' (to use vo_draw_text_sub without edit them) */ | 302 /* now init out own 'font' (to use vo_draw_text_sub without edit them) */ |
303 vo_font=malloc(sizeof(font_desc_t));//if(!desc) return NULL; | |
304 memset(vo_font,0,sizeof(font_desc_t)); | |
305 vo_font->pic_a[0]=malloc(sizeof(raw_file)); | |
306 vo_font->pic_b[0]=malloc(sizeof(raw_file)); | |
307 | |
303 vo_font->spacewidth=1; | 308 vo_font->spacewidth=1; |
304 vo_font->charspace=0; | 309 vo_font->charspace=0; |
305 vo_font->height=1; | 310 vo_font->height=1; |
306 vo_font->pic_a[1]->bmp=malloc(255); | 311 vo_font->pic_a[0]->bmp=malloc(255); |
307 vo_font->pic_b[1]->bmp=malloc(255); | 312 vo_font->pic_b[0]->bmp=malloc(255); |
308 vo_font->pic_a[1]->w=1; | 313 vo_font->pic_a[0]->w=1; |
309 vo_font->pic_a[1]->h=1; | 314 vo_font->pic_a[0]->h=1; |
310 for (i=1; i<256; i++){ | 315 for (i=1; i<256; i++){ |
311 vo_font->width[i]=1; | 316 vo_font->width[i]=1; |
312 vo_font->font[i]=1; | 317 vo_font->font[i]=0; |
313 vo_font->start[i]=i; | 318 vo_font->start[i]=i; |
314 vo_font->pic_a[1]->bmp[i]=i; | 319 vo_font->pic_a[0]->bmp[i]=i; |
315 vo_font->pic_b[1]->bmp[i]=i; | 320 vo_font->pic_b[0]->bmp[i]=i; |
316 }; | 321 }; |
317 #endif | 322 #endif |
318 /* say hello */ | 323 /* say hello */ |
319 osdmessage(5, 1, "Welcome to ASCII ARTS MPlayer"); | 324 osdmessage(5, 1, "Welcome to ASCII ARTS MPlayer"); |
320 | 325 |