changeset 4977:7b65a4f0b74e

vm pecs applied from daniel carter <hedonist@win.co.nz>
author pontscho
date Thu, 07 Mar 2002 14:04:15 +0000
parents 0780634e64b5
children ae66f5ca2225
files libvo/x11_common.c
diffstat 1 files changed, 9 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/x11_common.c	Thu Mar 07 13:09:10 2002 +0000
+++ b/libvo/x11_common.c	Thu Mar 07 14:04:15 2002 +0000
@@ -66,9 +66,9 @@
 int xinerama_x = 0;
 int xinerama_y = 0;
 #endif
-
 #ifdef HAVE_XF86VM
 XF86VidModeModeInfo **vidmodes=NULL;
+XF86VidModeModeLine modeline;
 #endif
 
 void vo_hidecursor ( Display *disp , Window win )
@@ -215,6 +215,14 @@
   }
  else
 #endif
+#ifdef HAVE_XF86VM
+ {
+  int clock;
+  XF86VidModeGetModeLine( mDisplay,mScreen,&clock ,&modeline );
+  if ( !vo_screenwidth )  vo_screenwidth=modeline.hdisplay;
+  if ( !vo_screenheight ) vo_screenheight=modeline.vdisplay;
+ }
+#endif
  {
  if (! vo_screenwidth)
    vo_screenwidth=DisplayWidth( mDisplay,mScreen );