[Mplayer-cvslog] CVS: main/vidix/drivers mach64_vid.c,1.23,1.24

Michael Niedermayer michael at mplayer.dev.hu
Mon Apr 15 22:54:30 CEST 2002


Update of /cvsroot/mplayer/main/vidix/drivers
In directory mplayer:/var/tmp.root/cvs-serv23583

Modified Files:
	mach64_vid.c 
Log Message:
print version number, so we know if the user forgot to copy/install the driver


Index: mach64_vid.c
===================================================================
RCS file: /cvsroot/mplayer/main/vidix/drivers/mach64_vid.c,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -r1.23 -r1.24
--- mach64_vid.c	13 Apr 2002 02:30:44 -0000	1.23
+++ mach64_vid.c	15 Apr 2002 20:54:28 -0000	1.24
@@ -20,6 +20,7 @@
 #include "../../libdha/pci_names.h"
 
 #include "mach64.h"
+#include "../../version.h"
 
 #define UNUSED(x) ((void)(x)) /**< Removes warning about unused arguments */
 
@@ -262,7 +263,10 @@
     int ret;
     int yres= mach64_get_yres();
 
-    if(!supports_lcd_v_stretch) return 1<<16;
+    if(!supports_lcd_v_stretch){
+        if(__verbose>0) printf("[mach64] vertical stretching not supported\n");
+        return 1<<16;
+    }
 
     lcd_index= INREG(LCD_INDEX);
     
@@ -442,6 +446,8 @@
     printf("[mach64] Driver was not probed but is being initializing\n");
     return EINTR;
   }
+  if(__verbose>0) printf("[mach64] version %s\n", VERSION);
+  
   if((mach64_mmio_base = map_phys_mem(pci_info.base2,0x4000))==(void *)-1) return ENOMEM;
   mach64_wait_for_idle();
   mach64_ram_size = INREG(MEM_CNTL) & CTL_MEM_SIZEB;




More information about the MPlayer-cvslog mailing list