mirror of
https://github.com/reactos/reactos.git
synced 2025-02-25 01:39:30 +00:00
fix a bug in createsurface
DDSD_LPSURFACE should only be automatic set if we have a system memory surface. svn path=/trunk/; revision=31267
This commit is contained in:
parent
2bae495105
commit
dbd6da8f76
1 changed files with 3 additions and 3 deletions
|
@ -78,10 +78,10 @@ Internal_CreateSurface( LPDDRAWI_DIRECTDRAW_INT pDDraw, LPDDSURFACEDESC2 pDDSD,
|
|||
|
||||
/*
|
||||
* program does not need set the DDSD_LPSURFACE,
|
||||
* if they forget set it, the ddraw will autoamtic set it.
|
||||
*
|
||||
* if they forget set it, the ddraw will autoamtic
|
||||
* set it for system memory.
|
||||
*/
|
||||
if ((pDDSD->dwFlags & DDSD_LPSURFACE) != DDSD_LPSURFACE)
|
||||
if ((pDDSD->dwFlags & DDSCAPS_SYSTEMMEMORY) != DDSCAPS_SYSTEMMEMORY)
|
||||
{
|
||||
pDDSD->dwFlags = pDDSD->dwFlags | DDSD_LPSURFACE;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue