[Mplayer-cvslog] CVS: main/libvo vo_xv.c,1.28,1.29
Zoltan Ponekker
pontscho at mplayer.dev.hu
Sat Sep 1 10:54:53 CEST 2001
Update of /cvsroot/mplayer/main/libvo
In directory mplayer:/var/tmp.root/cvs-serv23643
Modified Files:
vo_xv.c
Log Message:
fullscreen bug fixed
Index: vo_xv.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/vo_xv.c,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -r1.28 -r1.29
--- vo_xv.c 31 Aug 2001 10:06:32 -0000 1.28
+++ vo_xv.c 1 Sep 2001 08:54:37 -0000 1.29
@@ -248,6 +248,20 @@
current_buf=0;
+ #ifdef HAVE_NEW_GUI
+ if ( vo_window != None )
+ {
+ mFullscreen=0;
+ dwidth=mdwidth; dheight=mdheight;
+ if ( ( vo_dwidth == vo_screenwidth )&&( vo_dheight == vo_screenheight ) )
+ {
+ mFullscreen=1;
+ dwidth=vo_screenwidth;
+ dheight=vo_screenwidth * mdheight / mdwidth;
+ }
+ }
+ #endif
+
XGetGeometry( mDisplay,mywindow,&mRoot,&drwX,&drwY,&drwWidth,&drwHeight,&drwBorderWidth,&drwDepth );
drwX=0; drwY=0;
XTranslateCoordinates( mDisplay,mywindow,mRoot,0,0,&drwcX,&drwcY,&mRoot );
@@ -266,7 +280,7 @@
#ifdef HAVE_NEW_GUI
if ( vo_window == None )
#endif
- saver_off(mDisplay); // turning off screen saver
+ saver_off(mDisplay); // turning off screen saver
return 0;
}
}
@@ -323,7 +337,7 @@
{
mFullscreen=0;
dwidth=mdwidth; dheight=mdheight;
- if ( ( drwWidth == vo_screenwidth )&&( drwHeight == vo_screenheight ) )
+ if ( ( vo_dwidth == vo_screenwidth )&&( vo_dheight == vo_screenheight ) )
{
mFullscreen=1;
dwidth=vo_screenwidth;
More information about the MPlayer-cvslog
mailing list