summaryrefslogtreecommitdiffstats
path: root/libvo/vo_xv.c
diff options
context:
space:
mode:
authoratlka <atlka@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-08-13 11:08:18 +0000
committeratlka <atlka@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-08-13 11:08:18 +0000
commitca99c8dc89eba6bb2ebb330beaccea304a930da0 (patch)
tree271aa033eb11e526d98e53441bdbf576f6279445 /libvo/vo_xv.c
parenteefce080f001e82043111f814d088fa575d855d0 (diff)
downloadmpv-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_xv.c')
-rw-r--r--libvo/vo_xv.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/libvo/vo_xv.c b/libvo/vo_xv.c
index 4c2c1cf224..e748ee6f32 100644
--- a/libvo/vo_xv.c
+++ b/libvo/vo_xv.c
@@ -328,16 +328,20 @@ 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();
XvShmPutImage(mDisplay, xv_port, mywindow, mygc, xvimage[current_buf],
0, 0, image_width, image_height,
drwX,drwY,drwWidth,(mFullscreen?drwHeight - 1:drwHeight),
False);
- XFlush(mDisplay);
- current_buf=(current_buf+1)%num_buffers;
+ if (num_buffers>1){
+ current_buf=(current_buf+1)%num_buffers;
+ XFlush(mDisplay);
+ } else
+ XSync(mDisplay, False);
return;
}