Author: mbosma
Date: Sat May 12 21:50:09 2007
New Revision: 26736
URL:
http://svn.reactos.org/svn/reactos?rev=26736&view=rev
Log:
Create Internal_CreateSurface stub.
Modified:
trunk/reactos/dll/directx/ddraw/Ddraw/ddraw_main.c
trunk/reactos/dll/directx/ddraw/Surface/createsurface.c
trunk/reactos/dll/directx/ddraw/Surface/surface.h
Modified: trunk/reactos/dll/directx/ddraw/Ddraw/ddraw_main.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/directx/ddraw/Ddraw/dd…
==============================================================================
--- trunk/reactos/dll/directx/ddraw/Ddraw/ddraw_main.c (original)
+++ trunk/reactos/dll/directx/ddraw/Ddraw/ddraw_main.c Sat May 12 21:50:09 2007
@@ -130,6 +130,9 @@
DX_WINDBG_trace();
+ if (pUnkOuter)
+ return DDERR_GENERIC;
+
/* FIXME vaildate input pointers or warp everthing with SEH */
EnterCriticalSection(&ddcs);
@@ -162,7 +165,7 @@
}
/* FIXME add one gbl check with one pDDSD check */
- // ret = internal_CreateSurface(iface,dd_desc_v2,ppSurf,pUnkOuter);
+ ret = Internal_CreateSurface(dd_int,ppSurf,&dd_desc_v2);
LeaveCriticalSection(&ddcs);
return ret;
Modified: trunk/reactos/dll/directx/ddraw/Surface/createsurface.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/directx/ddraw/Surface/…
==============================================================================
--- trunk/reactos/dll/directx/ddraw/Surface/createsurface.c (original)
+++ trunk/reactos/dll/directx/ddraw/Surface/createsurface.c Sat May 12 21:50:09 2007
@@ -9,6 +9,13 @@
*/
#include "rosdraw.h"
+HRESULT
+Internal_CreateSurface(LPDDRAWI_DIRECTDRAW_INT pDDraw,
+ LPDDRAWI_DDRAWSURFACE_LCL *lpLcl,
+ LPDDSURFACEDESC2 pDDSD)
+{
+ return DDERR_GENERIC;
+}
void CopyDDSurfDescToDDSurfDesc2(LPDDSURFACEDESC2 dst_pDesc, LPDDSURFACEDESC src_pDesc)
{
Modified: trunk/reactos/dll/directx/ddraw/Surface/surface.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/directx/ddraw/Surface/…
==============================================================================
--- trunk/reactos/dll/directx/ddraw/Surface/surface.h (original)
+++ trunk/reactos/dll/directx/ddraw/Surface/surface.h Sat May 12 21:50:09 2007
@@ -71,3 +71,4 @@
HRESULT CreateOverlaySurface(LPDDRAWI_DIRECTDRAW_INT This, LPDDRAWI_DDRAWSURFACE_INT
*That, LPDDSURFACEDESC2 pDDSD);
HRESULT CreateBackBufferSurface(LPDDRAWI_DIRECTDRAW_INT This, LPDDRAWI_DDRAWSURFACE_INT
*That, LPDDRAWI_DDRAWSURFACE_LCL *lpLcl, LPDDSURFACEDESC2 pDDSD);
HRESULT CreatePrimarySurface(LPDDRAWI_DIRECTDRAW_INT This, LPDDRAWI_DDRAWSURFACE_INT
*That,LPDDRAWI_DDRAWSURFACE_LCL *lpLcl, LPDDSURFACEDESC2 pDDSD);
+HRESULT Internal_CreateSurface(LPDDRAWI_DIRECTDRAW_INT, LPDDRAWI_DDRAWSURFACE_LCL*,
LPDDSURFACEDESC2);