Removed superfluous XFlush calls before XSync.

Original patch by Piotr Neuman <sikkh@wp.pl>
extended by Joey to cover all X11 code
modified by me to only do the above stated change.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13057 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
al 2004-08-20 09:41:13 +00:00
parent 9defc531ea
commit 06be6b7135
8 changed files with 0 additions and 10 deletions

View File

@ -204,7 +204,6 @@ create_window(Display *display, char *title)
XSelectInput(display, mywindow, NoEventMask);
XFlush(display);
XSync(display, False);
return 0;

View File

@ -634,7 +634,6 @@ static uint32_t config(uint32_t width, uint32_t height, uint32_t d_width, uint32
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);
}

View File

@ -425,7 +425,6 @@ static uint32_t config(uint32_t width, uint32_t height, uint32_t d_width,
vo_dwidth, vo_dheight);
}
XFlush(mDisplay);
XSync(mDisplay, False);
// we cannot grab mouse events on root window :(

View File

@ -275,7 +275,6 @@ static uint32_t config(uint32_t width, uint32_t height, uint32_t d_width,
if (vo_ontop)
vo_x11_setlayer(mDisplay, vo_window, vo_ontop);
XFlush(mDisplay);
XSync(mDisplay, False);
ioctl(f, MGA_VID_ON, 0);

View File

@ -347,7 +347,6 @@ static uint32_t config(uint32_t width, uint32_t height, uint32_t d_width,
set_window(1);
XFlush(mDisplay);
XSync(mDisplay, False);
panscan_calc();

View File

@ -348,7 +348,6 @@ static uint32_t config(uint32_t width, uint32_t height, uint32_t d_width,
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 @@ static void deallocate_xvimage(int foo)
}
XFree(xvimage[foo]);
XFlush(mDisplay);
XSync(mDisplay, False);
return;
}

View File

@ -411,7 +411,6 @@ static uint32_t config(uint32_t width, uint32_t height, uint32_t d_width,
set_window(1);
XFlush(mDisplay);
XSync(mDisplay, False);
panscan_calc();

View File

@ -189,7 +189,6 @@ static void deallocate_xvimage()
}
XFree(xvimage);
XFlush( mDisplay );
XSync(mDisplay, False);
return;
}
@ -762,7 +761,6 @@ found_subpic:
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 )