x11drv again

Ove Kaaven ovehk at ping.uio.no
Mon Apr 16 17:30:40 CDT 2001


This is the entry point to x11drv's DirectDraw HAL facilities. I suppose
I'd have to submit this soon...

Log:
Ove Kaaven <ovek at transgaming.com>
Implemented the ddraw HAL access escape (DCICOMMAND) in x11drv.

Index: wine/graphics/x11drv/init.c
diff -u wine/graphics/x11drv/init.c:1.1.1.8 wine/graphics/x11drv/init.c:1.8
--- wine/graphics/x11drv/init.c:1.1.1.8	Tue Mar 20 00:36:10 2001
+++ wine/graphics/x11drv/init.c	Fri Mar  2 06:19:26 2001
@@ -15,6 +15,7 @@
 #include "debugtools.h"
 #include "winnt.h"
 #include "x11drv.h"
+#include "ddrawi.h"
 
 DEFAULT_DEBUG_CHANNEL(x11drv);
 
@@ -321,6 +322,18 @@
 {
     switch( nEscape )
     {
+	case QUERYESCSUPPORT:
+	     if( lpInData )
+	     {
+		 LPINT16 lpEscape = MapSL(lpInData);
+		 switch (*lpEscape)
+		 {
+		     case DCICOMMAND:
+			 return DD_HAL_VERSION;
+		 }
+	     }
+	     break;
+
 	case GETSCALINGFACTOR:
 	     if( lpOutData )
 	     {
@@ -329,7 +342,16 @@
 		 return 1;
 	     }
 	     break;
+
+	case DCICOMMAND:
+	     if( lpInData )
+	     {
+		 LPDCICMD lpCmd = MapSL(lpInData);
+		 if (lpCmd->dwVersion != DD_VERSION) break;
+		 return X11DRV_DCICommand(cbInput, lpCmd, MapSL(lpOutData));
+	     }
+	     break;
+
     }
     return 0;
 }
-





More information about the wine-patches mailing list