diff options
Diffstat (limited to 'libvo/sub.c')
-rw-r--r-- | libvo/sub.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libvo/sub.c b/libvo/sub.c index 72e2a836bc..77934a691b 100644 --- a/libvo/sub.c +++ b/libvo/sub.c @@ -272,6 +272,12 @@ inline static void vo_draw_text_sub(int dxs,int dys,void (*draw_alpha)(int x0,in } } +void *vo_spudec=NULL; + +inline static void vo_draw_spudec(int dxs,int dys,void (*draw_alpha)(int x0,int y0, int w,int h, unsigned char* src, unsigned char *srca, int stride)){ + spudec_draw(vo_spudec, draw_alpha); +} + static int draw_alpha_init_flag=0; extern void vo_draw_alpha_init(); @@ -297,5 +303,9 @@ void vo_draw_text(int dxs,int dys,void (*draw_alpha)(int x0,int y0, int w,int h, vo_draw_text_progbar(dxs,dys,draw_alpha); } + if(vo_spudec){ + vo_draw_spudec(dxs,dys,draw_alpha); + } + } |