From ca99c8dc89eba6bb2ebb330beaccea304a930da0 Mon Sep 17 00:00:00 2001 From: atlka Date: Mon, 13 Aug 2001 11:08:18 +0000 Subject: changes according to -utf8 option, draw_osd() function added git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1502 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/vo_x11.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'libvo/vo_x11.c') diff --git a/libvo/vo_x11.c b/libvo/vo_x11.c index 41ef08c857..f6bda68162 100644 --- a/libvo/vo_x11.c +++ b/libvo/vo_x11.c @@ -373,7 +373,6 @@ static void Display_Image( XImage *myximage,uint8_t *ImageData ) 0,0, ( vo_dwidth - myximage->width ) / 2,( vo_dheight - myximage->height ) / 2, myximage->width,myximage->height,True ); - XFlush( mDisplay ); } else #endif @@ -382,7 +381,6 @@ static void Display_Image( XImage *myximage,uint8_t *ImageData ) 0,0, ( vo_dwidth - myximage->width ) / 2,( vo_dheight - myximage->height ) / 2, myximage->width,myximage->height ); - XFlush( mDisplay ); } #endif } @@ -405,10 +403,12 @@ static void draw_alpha(int x0,int y0, int w,int h, unsigned char* src, unsigned } } +static void draw_osd(void) +{ vo_draw_text(image_width,image_height,draw_alpha); } + static void flip_page( void ){ - vo_draw_text(image_width,image_height,draw_alpha); - check_events(); Display_Image( myximage,ImageData ); + XSync(mDisplay, False); } static uint32_t draw_slice( uint8_t *src[],int stride[],int w,int h,int x,int y ) -- cgit v1.2.3