# HG changeset patch # User al # Date 1092994873 0 # Node ID 1c2f6de431bf3bf4ce6f8e4daabef42cb2e09f56 # Parent 73f18d9f0ca9fa3d7dfb3935b36c419b3c4ef960 Removed superfluous XFlush calls before XSync. Original patch by Piotr Neuman extended by Joey to cover all X11 code modified by me to only do the above stated change. diff -r 73f18d9f0ca9 -r 1c2f6de431bf libvo/vo_3dfx.c --- a/libvo/vo_3dfx.c Thu Aug 19 17:18:06 2004 +0000 +++ b/libvo/vo_3dfx.c Fri Aug 20 09:41:13 2004 +0000 @@ -204,7 +204,6 @@ XSelectInput(display, mywindow, NoEventMask); - XFlush(display); XSync(display, False); return 0; diff -r 73f18d9f0ca9 -r 1c2f6de431bf libvo/vo_dxr3.c --- a/libvo/vo_dxr3.c Thu Aug 19 17:18:06 2004 +0000 +++ b/libvo/vo_dxr3.c Fri Aug 20 09:41:13 2004 +0000 @@ -634,7 +634,6 @@ XSetStandardProperties(mDisplay, vo_window, "DXR3 Overlay", "DXR3 Overlay", None, NULL, 0, &hint); XSetWMNormalHints(mDisplay, vo_window, &hint); XMapWindow(mDisplay, vo_window); - XFlush(mDisplay); XSync(mDisplay, False); } diff -r 73f18d9f0ca9 -r 1c2f6de431bf libvo/vo_x11.c --- a/libvo/vo_x11.c Thu Aug 19 17:18:06 2004 +0000 +++ b/libvo/vo_x11.c Fri Aug 20 09:41:13 2004 +0000 @@ -425,7 +425,6 @@ vo_dwidth, vo_dheight); } - XFlush(mDisplay); XSync(mDisplay, False); // we cannot grab mouse events on root window :( diff -r 73f18d9f0ca9 -r 1c2f6de431bf libvo/vo_xmga.c --- a/libvo/vo_xmga.c Thu Aug 19 17:18:06 2004 +0000 +++ b/libvo/vo_xmga.c Fri Aug 20 09:41:13 2004 +0000 @@ -275,7 +275,6 @@ if (vo_ontop) vo_x11_setlayer(mDisplay, vo_window, vo_ontop); - XFlush(mDisplay); XSync(mDisplay, False); ioctl(f, MGA_VID_ON, 0); diff -r 73f18d9f0ca9 -r 1c2f6de431bf libvo/vo_xover.c --- a/libvo/vo_xover.c Thu Aug 19 17:18:06 2004 +0000 +++ b/libvo/vo_xover.c Fri Aug 20 09:41:13 2004 +0000 @@ -347,7 +347,6 @@ set_window(1); - XFlush(mDisplay); XSync(mDisplay, False); panscan_calc(); diff -r 73f18d9f0ca9 -r 1c2f6de431bf libvo/vo_xv.c --- a/libvo/vo_xv.c Thu Aug 19 17:18:06 2004 +0000 +++ b/libvo/vo_xv.c Fri Aug 20 09:41:13 2004 +0000 @@ -348,7 +348,6 @@ if (vo_gc != None) XFreeGC(mDisplay, vo_gc); vo_gc = XCreateGC(mDisplay, vo_window, 0L, &xgcv); - XFlush(mDisplay); XSync(mDisplay, False); #ifdef HAVE_XF86VM if (vm) @@ -512,7 +511,6 @@ } XFree(xvimage[foo]); - XFlush(mDisplay); XSync(mDisplay, False); return; } diff -r 73f18d9f0ca9 -r 1c2f6de431bf libvo/vo_xvidix.c --- a/libvo/vo_xvidix.c Thu Aug 19 17:18:06 2004 +0000 +++ b/libvo/vo_xvidix.c Fri Aug 20 09:41:13 2004 +0000 @@ -411,7 +411,6 @@ set_window(1); - XFlush(mDisplay); XSync(mDisplay, False); panscan_calc(); diff -r 73f18d9f0ca9 -r 1c2f6de431bf libvo/vo_xvmc.c --- a/libvo/vo_xvmc.c Thu Aug 19 17:18:06 2004 +0000 +++ b/libvo/vo_xvmc.c Fri Aug 20 09:41:13 2004 +0000 @@ -189,7 +189,6 @@ } XFree(xvimage); - XFlush( mDisplay ); XSync(mDisplay, False); return; } @@ -762,7 +761,6 @@ if ( vo_gc != None ) XFreeGC( mDisplay,vo_gc ); vo_gc = XCreateGC(mDisplay, vo_window, GCForeground, &xgcv); - XFlush(mDisplay); XSync(mDisplay, False); #ifdef HAVE_XF86VM if ( vm )