Author: greatlrd
Date: Sun Apr 2 20:12:25 2006
New Revision: 21445
URL:
http://svn.reactos.ru/svn/reactos?rev=21445&view=rev
Log:
at last no more crash in create surface but it is not finish
Modified:
trunk/reactos/dll/directx/ddraw/main/ddraw_main.c
Modified: trunk/reactos/dll/directx/ddraw/main/ddraw_main.c
URL:
http://svn.reactos.ru/svn/reactos/trunk/reactos/dll/directx/ddraw/main/ddra…
==============================================================================
--- trunk/reactos/dll/directx/ddraw/main/ddraw_main.c (original)
+++ trunk/reactos/dll/directx/ddraw/main/ddraw_main.c Sun Apr 2 20:12:25 2006
@@ -266,9 +266,38 @@
*ppSurf = (LPDIRECTDRAWSURFACE7)That;
+
+ //This->mpLocal = (DDRAWI_DDRAWSURFACE_LCL*
)DxHeapMemAlloc(sizeof(DDRAWI_DDRAWSURFACE_LCL) * This->cSurfaces);
+ //This->mppLocal =
(DDRAWI_DDRAWSURFACE_LCL**)DxHeapMemAlloc(sizeof(DDRAWI_DDRAWSURFACE_LCL*) *
This->cSurfaces);
+ /* start alloc memory */
+ if ((pDDSD->ddsCaps.dwCaps & DDSCAPS_VIDEOMEMORY))
+ {
+ // Do not alloc system memmory
+
+ }
+ else
+ {
+ // Create system mmeory
+ //DDSCAPS_SYSTEMMEMORY
+ }
+
+
+
+
// the real surface object creation
//return That->lpVtbl->Initialize (*ppSurf, (LPDIRECTDRAW)iface, pDDSD);
+ /* alloc memmory if we need it for diffent surface */
+ // DDSCAPS_VIDEOMEMORY graphic card alloc memmory */
+
+ // DDSCAPS_OFFSCREENPLAIN offcreen surface alloc memmory ??
+
+ // DDSCAPS_OVERLAY create overlay surface
+
+ // DDSCAPS_TEXTURE
+ // DDSCAPS_SYSTEMMEMORY
+
+ // return That->lpVtbl->Initialize (*ppSurf, (LPDIRECTDRAW)iface, pDDSD);
return DD_OK;
}