mirror of
https://github.com/reactos/reactos.git
synced 2025-02-25 09:50:02 +00:00
at last no more crash in create surface but it is not finish
svn path=/trunk/; revision=21445
This commit is contained in:
parent
01b0726ca7
commit
c301311ab1
1 changed files with 29 additions and 0 deletions
|
@ -266,9 +266,38 @@ HRESULT WINAPI Main_DirectDraw_CreateSurface (LPDIRECTDRAW7 iface, LPDDSURFACEDE
|
|||
|
||||
*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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue