mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-31 12:23:31 +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:
@@ -76,6 +76,16 @@ Internal_CreateSurface( LPDDRAWI_DIRECTDRAW_INT pDDraw, LPDDSURFACEDESC2 pDDSD,
|
||||
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 */
|
||||
|
||||
DxHeapMemAlloc(slist_int, num_of_surf * sizeof( LPDDRAWI_DDRAWSURFACE_INT ) );
|
||||
|
||||
Reference in New Issue
Block a user