diff options
author | atlka <atlka@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-08-13 11:08:18 +0000 |
---|---|---|
committer | atlka <atlka@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-08-13 11:08:18 +0000 |
commit | ca99c8dc89eba6bb2ebb330beaccea304a930da0 (patch) | |
tree | 271aa033eb11e526d98e53441bdbf576f6279445 /libvo/vo_x11.c | |
parent | eefce080f001e82043111f814d088fa575d855d0 (diff) | |
download | mpv-ca99c8dc89eba6bb2ebb330beaccea304a930da0.tar.bz2 mpv-ca99c8dc89eba6bb2ebb330beaccea304a930da0.tar.xz |
changes according to -utf8 option, draw_osd() function added
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1502 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo/vo_x11.c')
-rw-r--r-- | libvo/vo_x11.c | 8 |
1 files changed, 4 insertions, 4 deletions
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 ) |