changeset 3852:cd642e995366

use XF86VidMode later in init (at line 1031) only if we've got support (if have_vm==1)
author alex
date Fri, 28 Dec 2001 20:52:54 +0000
parents 2600f70929b7
children f767ae423309
files libvo/vo_dga.c
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vo_dga.c	Fri Dec 28 20:52:51 2001 +0000
+++ b/libvo/vo_dga.c	Fri Dec 28 20:52:54 2001 +0000
@@ -23,6 +23,9 @@
  * - works only on x86 architectures
  *
  * $Log$
+ * Revision 1.35  2001/12/28 20:52:54  alex
+ * use XF86VidMode later in init (at line 1031) only if we've got support (if have_vm==1)
+ *
  * Revision 1.34  2001/12/04 17:24:25  alex
  * do not crash if can't get modelines (dga2.0)
  *
@@ -1024,11 +1027,14 @@
 #else
   
 #ifdef HAVE_XF86VM
+  if (have_vm)
+  {
     XF86VidModeLockModeSwitch(vo_dga_dpy,XDefaultScreen(vo_dga_dpy),0);
     // Two calls are needed to switch modes on my ATI Rage 128. Why?
     // for riva128 one call is enough!
     XF86VidModeSwitchToMode(vo_dga_dpy,XDefaultScreen(vo_dga_dpy),vo_dga_vidmodes[dga_modenum]);
     XF86VidModeSwitchToMode(vo_dga_dpy,XDefaultScreen(vo_dga_dpy),vo_dga_vidmodes[dga_modenum]);
+  }
 #endif
   
   XF86DGAGetViewPortSize(vo_dga_dpy,XDefaultScreen(vo_dga_dpy),