comparison libvo/sub.c @ 947:76fd9463b9d3

FAST_OSD option to disable font outline antialiasing
author arpi_esp
date Sat, 02 Jun 2001 16:02:38 +0000
parents 83919c1b9924
children a013b2124f05
comparison
equal deleted inserted replaced
946:5cbef0829f82 947:76fd9463b9d3
184 } 184 }
185 } 185 }
186 186
187 } 187 }
188 188
189 static int draw_alpha_init_flag=0;
189 190
190 void vo_draw_text(int dxs,int dys,void (*draw_alpha)(int x0,int y0, int w,int h, unsigned char* src, unsigned char *srca, int stride)){ 191 void vo_draw_text(int dxs,int dys,void (*draw_alpha)(int x0,int y0, int w,int h, unsigned char* src, unsigned char *srca, int stride)){
191 192
192 if(!vo_font) return; // no font 193 if(!vo_font) return; // no font
194
195 if(!draw_alpha_init_flag){
196 draw_alpha_init_flag=1;
197 vo_draw_alpha_init();
198 }
193 199
194 if(vo_osd_text){ 200 if(vo_osd_text){
195 vo_draw_text_osd(dxs,dys,draw_alpha); 201 vo_draw_text_osd(dxs,dys,draw_alpha);
196 } 202 }
197 203