[Mplayer-cvslog] CVS: main/libvo vo_x11.c,1.103,1.104
Zoltan Ponekker
pontscho at mplayerhq.hu
Sat May 11 18:54:18 CEST 2002
- Previous message: [Mplayer-cvslog] CVS: main/Gui/mplayer/gtk about.c,1.3,1.4 fs.c,1.10,1.11 mb.c,1.4,1.5 opts.c,1.2,1.3 pl.c,1.2,1.3 sb.c,1.5,1.6
- Next message: [Mplayer-cvslog] CVS: main/libvo x11_common.c,1.78,1.79
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/mplayer/main/libvo
In directory mail:/var/tmp.root/cvs-serv20128/libvo
Modified Files:
vo_x11.c
Log Message:
fix Nil's vo_x11 bug (Nilmoni Deb <ndeb at ece.cmu.edu>)
Index: vo_x11.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/vo_x11.c,v
retrieving revision 1.103
retrieving revision 1.104
diff -u -r1.103 -r1.104
--- vo_x11.c 11 May 2002 14:57:41 -0000 1.103
+++ vo_x11.c 11 May 2002 16:54:15 -0000 1.104
@@ -237,7 +237,6 @@
int vm=0;
// int interval, prefer_blank, allow_exp, nothing;
unsigned int fg,bg;
- XSizeHints hint;
XEvent xev;
XGCValues xgcv;
Colormap theCmap;
@@ -290,10 +289,6 @@
else
#endif
{
- hint.x=vo_dx;
- hint.y=vo_dy;
- hint.width=width;
- hint.height=height;
#ifdef HAVE_XF86VM
if ( vm )
@@ -303,21 +298,16 @@
else
{ vm_width=d_width; vm_height=d_height; }
vo_vm_switch(vm_width, vm_height,&modeline_width, &modeline_height);
- hint.x=(vo_screenwidth-modeline_width)/2;
- hint.y=(vo_screenheight-modeline_height)/2;
- hint.width=modeline_width;
- hint.height=modeline_height;
+ vo_dx=(vo_screenwidth-modeline_width)/2;
+ vo_dy=(vo_screenheight-modeline_height)/2;
+ vo_dwidth=modeline_width;
+ vo_dheight=modeline_height;
}
#endif
- hint.flags=PPosition | PSize;
-
bg=WhitePixel( mDisplay,mScreen );
fg=BlackPixel( mDisplay,mScreen );
- vo_dwidth=hint.width;
- vo_dheight=hint.height;
- theCmap =XCreateColormap( mDisplay,RootWindow( mDisplay,mScreen ),
- vinfo.visual,AllocNone );
+ theCmap=XCreateColormap( mDisplay,mRootWin,vinfo.visual,AllocNone );
xswa.background_pixel=0;
xswa.border_pixel=0;
@@ -344,18 +334,18 @@
else
{
vo_window=XCreateWindow( mDisplay,mRootWin,
- hint.x,hint.y,
- hint.width,hint.height,
+ vo_dx,vo_dy,
+ vo_dwidth,vo_dheight,
xswa.border_pixel,depth,CopyFromParent,vinfo.visual,xswamask,&xswa );
vo_x11_classhint( mDisplay,vo_window,"x11" );
vo_hidecursor(mDisplay,vo_window);
+ vo_x11_sizehint( vo_dx,vo_dy,vo_dwidth,vo_dheight,0 );
XSelectInput( mDisplay,vo_window,StructureNotifyMask );
- XSetStandardProperties( mDisplay,vo_window,title,title,None,NULL,0,&hint );
+ XStoreName( mDisplay,vo_window,title );
XMapWindow( mDisplay,vo_window );
if(WinID!=0)
do { XNextEvent( mDisplay,&xev ); } while ( xev.type != MapNotify || xev.xmap.event != vo_window );
- XSelectInput( mDisplay,vo_window,NoEventMask );
if ( fullscreen ) vo_x11_fullscreen();
#ifdef HAVE_XINERAMA
@@ -367,7 +357,7 @@
XSync( mDisplay,False );
// we cannot grab mouse events on root window :(
- XSelectInput( mDisplay,vo_window,StructureNotifyMask | KeyPressMask | PropertyChangeMask |
+ XSelectInput( mDisplay,vo_window,StructureNotifyMask | KeyPressMask | PropertyChangeMask | ExposureMask |
((WinID==0)?0:(ButtonPressMask | ButtonReleaseMask | PointerMotionMask)) );
#ifdef HAVE_XF86VM
- Previous message: [Mplayer-cvslog] CVS: main/Gui/mplayer/gtk about.c,1.3,1.4 fs.c,1.10,1.11 mb.c,1.4,1.5 opts.c,1.2,1.3 pl.c,1.2,1.3 sb.c,1.5,1.6
- Next message: [Mplayer-cvslog] CVS: main/libvo x11_common.c,1.78,1.79
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the MPlayer-cvslog
mailing list