changeset 1818:18ba1f7373c5

fullscreen bug fixed
author pontscho
date Sat, 01 Sep 2001 08:54:37 +0000
parents 35d88a433502
children b5b89f8efc5f
files libvo/vo_xv.c
diffstat 1 files changed, 16 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vo_xv.c	Fri Aug 31 22:58:41 2001 +0000
+++ b/libvo/vo_xv.c	Sat Sep 01 08:54:37 2001 +0000
@@ -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;