Implement GetDeviceCaps in mfdrv

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





ChangeLog:

     Implementation of GetDeviceCaps in Metafile driver.

Warren Baird : Warren_Baird@cimmetry.com
Xavier Servettaz

diff -ur clean/wine/dlls/gdi/mfdrv/metafiledrv.h
wine/dlls/gdi/mfdrv/metafiledrv.h
--- clean/wine/dlls/gdi/mfdrv/metafiledrv.h   Wed Jan 29 15:30:25 2003
+++ wine/dlls/gdi/mfdrv/metafiledrv.h    Fri Jan 31 15:56:51 2003
@@ -150,5 +150,6 @@
 extern BOOL MFDRV_StrokeAndFillPath( PHYSDEV dev );
 extern BOOL MFDRV_StrokePath( PHYSDEV dev );
 extern BOOL MFDRV_WidenPath( PHYSDEV dev );
+extern int  MFDRV_GetDeviceCaps( PHYSDEV dev , INT cap);

 #endif  /* __WINE_METAFILEDRV_H */

diff -ur clean/wine/dlls/gdi/mfdrv/init.c  wine/dlls/gdi/mfdrv/init.c
--- clean/wine/dlls/gdi/mfdrv/init.c     Wed Jan 29 15:30:25 2003
+++ wine/dlls/gdi/mfdrv/init.c     Fri Jan 31 16:04:40 2003
@@ -68,7 +68,7 @@
     NULL,                            /* pGetDCOrgEx */
     NULL,                            /* pGetDIBColorTable */
     NULL,                            /* pGetDIBits */
-    NULL,                            /* pGetDeviceCaps */
+    MFDRV_GetDeviceCaps,                        /* pGetDeviceCaps */
     NULL,                            /* pGetDeviceGammaRamp */
     NULL,                            /* pGetNearestColor */
     NULL,                            /* pGetPixel */
@@ -552,3 +552,21 @@
     }
     return 0;
 }
+
+/******************************************************************
+ *         MFDRV_GetDeviceCaps
+ *
+ *A very simple implementation that returns DT_METAFILE
+ */
+int MFDRV_GetDeviceCaps(PHYSDEV dev, INT cap)
+{
+    switch(cap)    {
+    case TECHNOLOGY:
+         return DT_METAFILE;
+         break;
+    default:
+         TRACE(" unsupported capability %d, will return 0\n", cap );
+         return 0;
+    }
+}
+




[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux