diff options
Diffstat (limited to 'libvo')
-rw-r--r-- | libvo/sub.c | 10 | ||||
-rw-r--r-- | libvo/sub.h | 2 |
2 files changed, 12 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); + } + } diff --git a/libvo/sub.h b/libvo/sub.h index 8ffecbcd15..acaf4a050c 100644 --- a/libvo/sub.h +++ b/libvo/sub.h @@ -21,6 +21,8 @@ extern int vo_osd_progbar_value; // 0..255 extern subtitle* vo_sub; +extern void* vo_spudec; + #define OSD_PLAY 0x01 #define OSD_PAUSE 0x02 #define OSD_STOP 0x03 |