d3drm: Merge Direct3DRMCreate with its implementation.

Dmitry Timoshkov dmitry at codeweavers.com
Mon Jan 11 14:05:46 CST 2010


---
 dlls/d3drm/d3drm.c         |   11 ++++++-----
 dlls/d3drm/d3drm_main.c    |   16 ----------------
 dlls/d3drm/d3drm_private.h |   31 -------------------------------
 3 files changed, 6 insertions(+), 52 deletions(-)
 delete mode 100644 dlls/d3drm/d3drm_private.h

diff --git a/dlls/d3drm/d3drm.c b/dlls/d3drm/d3drm.c
index a0d7d3f..ae80d46 100644
--- a/dlls/d3drm/d3drm.c
+++ b/dlls/d3drm/d3drm.c
@@ -27,20 +27,21 @@
 
 #include "winbase.h"
 #include "wingdi.h"
-
-#include "d3drm_private.h"
 #include "d3drm.h"
 
 WINE_DEFAULT_DEBUG_CHANNEL(d3drm);
 
 typedef struct {
-    IDirect3DRM lpVtbl;
+    const IDirect3DRMVtbl *lpVtbl;
     LONG ref;
 } IDirect3DRMImpl;
 
 static const struct IDirect3DRMVtbl Direct3DRM_Vtbl;
 
-HRESULT Direct3DRM_create(LPDIRECT3DRM* ppDirect3DRM)
+/***********************************************************************
+ *              (D3DRM.@)
+ */
+HRESULT WINAPI Direct3DRMCreate(LPDIRECT3DRM* ppDirect3DRM)
 {
     IDirect3DRMImpl* object;
 
@@ -53,7 +54,7 @@ HRESULT Direct3DRM_create(LPDIRECT3DRM* ppDirect3DRM)
         return E_OUTOFMEMORY;
     }
 
-    object->lpVtbl.lpVtbl = &Direct3DRM_Vtbl;
+    object->lpVtbl = &Direct3DRM_Vtbl;
     object->ref = 1;
 
     *ppDirect3DRM = (IDirect3DRM*)object;
diff --git a/dlls/d3drm/d3drm_main.c b/dlls/d3drm/d3drm_main.c
index 38a6a6c..d38159d 100644
--- a/dlls/d3drm/d3drm_main.c
+++ b/dlls/d3drm/d3drm_main.c
@@ -20,12 +20,6 @@
 #include <stdarg.h>
 #include "windef.h"
 #include "winbase.h"
-#include "wingdi.h"
-#include "d3drm.h"
-#include "d3drm_private.h"
-#include "wine/debug.h"
-
-WINE_DEFAULT_DEBUG_CHANNEL(d3drm);
 
 /***********************************************************************
  *		DllMain  (D3DRM.@)
@@ -42,13 +36,3 @@ BOOL WINAPI DllMain( HINSTANCE inst, DWORD reason, LPVOID reserved )
     }
     return TRUE;
 }
-
-/***********************************************************************
- *              (D3DRM.@)
- */
-HRESULT WINAPI Direct3DRMCreate(LPDIRECT3DRM* ppDirect3DRM)
-{
-    TRACE("(%p)\n", ppDirect3DRM);
-
-    return Direct3DRM_create(ppDirect3DRM);
-}
diff --git a/dlls/d3drm/d3drm_private.h b/dlls/d3drm/d3drm_private.h
deleted file mode 100644
index 091b076..0000000
--- a/dlls/d3drm/d3drm_private.h
+++ /dev/null
@@ -1,31 +0,0 @@
-/*
- *      Direct3DRM private interfaces (D3DRM.DLL)
- *
- * Copyright 2010 Christian Costa
- *
- * This file contains the (internal) driver registration functions,
- * driver enumeration APIs and DirectDraw creation functions.
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
- */
-
-#ifndef __D3DRM_PRIVATE_INCLUDED__
-#define __D3DRM_PRIVATE_INCLUDED__
-
-#include "d3drm.h"
-
-HRESULT Direct3DRM_create(LPDIRECT3DRM* ppDirect3DRM);
-
-#endif /* __D3DRM_PRIVATE_INCLUDED__ */
-- 
1.6.6




More information about the wine-patches mailing list