mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 15:36:04 +00:00
fix another bug in createsurface
a program does not need set the flag DDSD_LPSURFACE, if they forget ddraw will automatic set it. svn path=/trunk/; revision=31266
This commit is contained in:
parent
bff867887d
commit
2bae495105
1 changed files with 10 additions and 0 deletions
|
@ -76,6 +76,16 @@ Internal_CreateSurface( LPDDRAWI_DIRECTDRAW_INT pDDraw, LPDDSURFACEDESC2 pDDSD,
|
||||||
return DDERR_INVALIDPARAMS;
|
return DDERR_INVALIDPARAMS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* program does not need set the DDSD_LPSURFACE,
|
||||||
|
* if they forget set it, the ddraw will autoamtic set it.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
if ((pDDSD->dwFlags & DDSD_LPSURFACE) != DDSD_LPSURFACE)
|
||||||
|
{
|
||||||
|
pDDSD->dwFlags = pDDSD->dwFlags | DDSD_LPSURFACE;
|
||||||
|
}
|
||||||
|
|
||||||
/* FIXME count our how many surface we need */
|
/* FIXME count our how many surface we need */
|
||||||
|
|
||||||
DxHeapMemAlloc(slist_int, num_of_surf * sizeof( LPDDRAWI_DDRAWSURFACE_INT ) );
|
DxHeapMemAlloc(slist_int, num_of_surf * sizeof( LPDDRAWI_DDRAWSURFACE_INT ) );
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue