1
0
mirror of https://github.com/mpv-player/mpv synced 2025-01-29 19:22:48 +00:00

added forced window clearing for Xv, because on my setup (sawfish,

nvidia) there occasionally left a blue strip above the movie when
switching to fullscreen.

patch by Jindrich Makovicka <makovick@kmlinux.fjfi.cvut.cz>


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7057 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
arpi 2002-08-21 21:23:26 +00:00
parent 0f4a3c14c3
commit f294139b30

View File

@ -530,6 +530,12 @@ static void check_events(void)
int e=vo_x11_check_events(mDisplay);
if(e&VO_EVENT_RESIZE)
{
if (vo_fs) {
e |= VO_EVENT_EXPOSE;
XClearWindow(mDisplay, vo_window);
XFlush(mDisplay);
}
XGetGeometry( mDisplay,vo_window,&mRoot,&drwX,&drwY,&vo_dwidth,&vo_dheight,&drwBorderWidth,&drwDepth );
drwX = drwY = 0;
mp_msg(MSGT_VO,MSGL_V, "[xv] dx: %d dy: %d dw: %d dh: %d\n",drwX,drwY,vo_dwidth,vo_dheight );